@@ -511,7 +511,11 @@ Appears not to be in Perl 6.
511
511
512
512
= item __FILE__
513
513
514
- Replaced by C < $?FILE > .
514
+ Replaced by C < $?FILE > which is slightly different from C < __FILE__ > in that
515
+ it is always an absolute path, rather than a relative one in the Perl 5 case.
516
+
517
+ The Perl 6 ecosystem has a module C < P5__FILE__ > which exports a C < __FILE__ >
518
+ term that mimics the original Perl 5 behaviour as much as possible.
515
519
516
520
= head2 fileno
517
521
@@ -641,25 +645,30 @@ C<endservent>, C<getservent>, C<getservbyname>, C<getservbyport> and
641
645
C < setservent > functions that mimic the original Perl 5 behaviour as much
642
646
as possible.
643
647
644
- = item gethostbyname NAME
648
+ = item endprotoent
645
649
646
650
= item getprotobyname NAME
647
651
648
- = item gethostbyaddr ADDR, ADDRTYPE
649
-
650
652
= item getprotobynumber NUMBER
651
653
652
- = item gethostent
653
-
654
654
= item getprotoent
655
655
656
- = item sethostent STAYOPEN
657
-
658
656
= item setprotoent STAYOPEN
659
657
660
- = item endhostent
658
+ The Perl 6 ecosystem has a module C < P5getprotobyname > which exports the
659
+ C < endprotoent > , C < getprotoent > , C < getprotobyname > , C < getprotobynumber > and
660
+ C < setprotoent > functions that mimic the original Perl 5 behaviour as much
661
+ as possible.
661
662
662
- = item endprotoent
663
+ = item gethostbyname NAME
664
+
665
+ = item gethostbyaddr ADDR, ADDRTYPE
666
+
667
+ = item gethostent
668
+
669
+ = item sethostent STAYOPEN
670
+
671
+ = item endhostent
663
672
664
673
[NEEDS FURTHER RESEARCH] Apparently this range of functions are to be handled
665
674
by roles like User, Group, etc.
@@ -858,6 +867,9 @@ function that mimics the original Perl 5 behaviour as much as possible.
858
867
859
868
Replaced by C < $?LINE > .
860
869
870
+ The Perl 6 ecosystem has a module C < P5__FILE__ > which exports a C < __LINE__ >
871
+ term that mimics the original Perl 5 behaviour as much as possible.
872
+
861
873
= head2 link
862
874
863
875
= item link OLDFILE, NEWFILE
@@ -1122,7 +1134,12 @@ directly in Perl 6.
1122
1134
1123
1135
= item __PACKAGE__
1124
1136
1125
- Replaced by C < $?PACKAGE > .
1137
+ Replaced by C < $?PACKAGE > which is slightly different from C < __PACKAGE__ > in
1138
+ that it is the actual package object. You should call the C < .^name > method
1139
+ on it to get a string.
1140
+
1141
+ The Perl 6 ecosystem has a module C < P5__FILE__ > which exports a C < __PACKAGE__ >
1142
+ term that mimics the original Perl 5 behaviour as much as possible.
1126
1143
1127
1144
= head2 pipe
1128
1145
@@ -1765,7 +1782,12 @@ L<functions|/language/functions>.
1765
1782
1766
1783
= item __SUB__
1767
1784
1768
- Replaced by C < &?ROUTINE > .
1785
+ Replaced by C < &?ROUTINE > which is slightly different from C < __SUB__ > in
1786
+ that it is the actual C < Sub > (or C < Method > ) object. You should call the
1787
+ C < .name > method on it to get a string.
1788
+
1789
+ The Perl 6 ecosystem has a module C < P5__FILE__ > which exports a C < __SUB__ >
1790
+ term that mimics the original Perl 5 behaviour as much as possible.
1769
1791
1770
1792
= head2 substr
1771
1793
0 commit comments