Skip to content

Commit 81c2e1e

Browse files
committed
Add CPAN Butterfly Plan references
- endprotoent, getprotobyname, getprotobynumber, getprotoent, setprotoent - __FILE__, __LINE__, __PACKAGE__, __SUB__
1 parent 4c97399 commit 81c2e1e

File tree

1 file changed

+34
-12
lines changed

1 file changed

+34
-12
lines changed

doc/Language/5to6-perlfunc.pod6

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,11 @@ Appears not to be in Perl 6.
511511
512512
=item __FILE__
513513
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.
515519
516520
=head2 fileno
517521
@@ -641,25 +645,30 @@ C<endservent>, C<getservent>, C<getservbyname>, C<getservbyport> and
641645
C<setservent> functions that mimic the original Perl 5 behaviour as much
642646
as possible.
643647
644-
=item gethostbyname NAME
648+
=item endprotoent
645649
646650
=item getprotobyname NAME
647651
648-
=item gethostbyaddr ADDR, ADDRTYPE
649-
650652
=item getprotobynumber NUMBER
651653
652-
=item gethostent
653-
654654
=item getprotoent
655655
656-
=item sethostent STAYOPEN
657-
658656
=item setprotoent STAYOPEN
659657
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.
661662
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
663672
664673
[NEEDS FURTHER RESEARCH] Apparently this range of functions are to be handled
665674
by roles like User, Group, etc.
@@ -858,6 +867,9 @@ function that mimics the original Perl 5 behaviour as much as possible.
858867
859868
Replaced by C<$?LINE>.
860869
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+
861873
=head2 link
862874
863875
=item link OLDFILE, NEWFILE
@@ -1122,7 +1134,12 @@ directly in Perl 6.
11221134
11231135
=item __PACKAGE__
11241136
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.
11261143
11271144
=head2 pipe
11281145
@@ -1765,7 +1782,12 @@ L<functions|/language/functions>.
17651782
17661783
=item __SUB__
17671784
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.
17691791
17701792
=head2 substr
17711793

0 commit comments

Comments
 (0)