@@ -32,8 +32,8 @@ function in the style of C<@args.func>.
32
32
33
33
= head1 SOURCES
34
34
35
- I'm taking my information from L < http ://doc.perl6.org> , supplemented by the
36
- design documents at L < http ://design.perl6.org/> and input from the denizens
35
+ I'm taking my information from L < https ://doc.perl6.org> , supplemented by the
36
+ design documents at L < https ://design.perl6.org/> and input from the denizens
37
37
of #perl6 on irc.freenode.org
38
38
39
39
= head1 Alphabetical Listing of Perl Functions
@@ -87,10 +87,10 @@ The remaining filetests in Perl 5 do not appear to be implemented
87
87
in Perl 6.
88
88
89
89
The documentation for this can be found at
90
- L < http ://doc.perl6.org/type/IO::FileTestable#File_Test_operators> .
90
+ L < https ://doc.perl6.org/type/IO::FileTestable#File_Test_operators> .
91
91
92
92
There is more information on reading and writing files at
93
- L < http ://doc.perl6.org/language/io> . Also, the section on C < open() >
93
+ L < https ://doc.perl6.org/language/io> . Also, the section on C < open() >
94
94
below may be helpful.
95
95
96
96
= head2 abs
@@ -167,7 +167,7 @@ still be useful.
167
167
168
168
Not in Perl 6. For breaking out of C < given > blocks, you should probably take a
169
169
look at C < proceed > and C < succeed >
170
- (L < http ://doc.perl6.org/language/control#proceed_and_succeed> ).
170
+ (L < https ://doc.perl6.org/language/control#proceed_and_succeed> ).
171
171
172
172
= head2 caller
173
173
@@ -316,7 +316,7 @@ C<my $deleted_value = @array[$i]:delete;>.
316
316
317
317
Works similarly to the Perl 5 version, but Perl 6's Exception mechanism
318
318
may give you more power and flexibility than is available in Perl 5.
319
- See L < http ://doc.perl6.org/language/exceptions> .
319
+ See L < https ://doc.perl6.org/language/exceptions> .
320
320
321
321
= head2 do
322
322
@@ -346,9 +346,9 @@ and $v }>
346
346
Incidentally, what we have there with the C << -> >> is called a pointy
347
347
block and, though there are a number of examples in the documentation,
348
348
there doesn't seem to be a really clear explanation of how they work.
349
- L < http ://design.perl6.org/S04.html#The_for_statement> may be of some
349
+ L < https ://design.perl6.org/S04.html#The_for_statement> may be of some
350
350
help here, as well as the design document at
351
- L < http ://design.perl6.org/S06.html#%22Pointy_blocks%22> . There is also
351
+ L < https ://design.perl6.org/S06.html#%22Pointy_blocks%22> . There is also
352
352
some information at L < https://en.wikibooks.org/wiki/Perl_6_Programming/-
353
353
Blocks_and_Closures#Pointy_Blocks >
354
354
@@ -613,7 +613,7 @@ Was never a builtin function in Perl 5 in the first place. In Perl 6,
613
613
typically, one declares functions as exportable or not, and all the
614
614
exportable ones are exported. Nevertheless, selective importing is
615
615
possible, but beyond the scope of this document. For details, see L < -
616
- http ://doc.perl6.org/language/5to6#Importing_specific_functions_from-
616
+ https ://doc.perl6.org/language/5to6#Importing_specific_functions_from-
617
617
_a_module > .
618
618
619
619
= head2 index
@@ -779,7 +779,7 @@ operator still exists. If you're trying to rewrite some Perl 5 code, the
779
779
most important difference is that C < =~ > is replaced by the smart match
780
780
operator, C < ~~ > . Similarly, C < !~ > is replaced by C < !~~ > . Options for
781
781
regex operators are adverbs and are complicated. For details, see
782
- L < http ://doc.perl6.org/language/regexes#Adverbs>
782
+ L < https ://doc.perl6.org/language/regexes#Adverbs>
783
783
784
784
= head2 map
785
785
@@ -873,7 +873,7 @@ The most obvious change from Perl 5 is the file mode syntax. To open a
873
873
file for reading only, you would say C < open("file", :r) > . For write-
874
874
only, read-write, and append, you would use C < :w > , C < :rw > , and C < :a >
875
875
respectively. There are also options for encoding and how the filehandle
876
- deals with newlines. Details at L < http ://doc.perl6.org/routine/open> .
876
+ deals with newlines. Details at L < https ://doc.perl6.org/routine/open> .
877
877
878
878
= head2 opendir
879
879
@@ -909,7 +909,7 @@ The same in Perl 6.
909
909
910
910
Available in Perl 6. The template options are currently more restricted
911
911
than they are in Perl 5. The current documented list can be found at
912
- L < http ://doc.perl6.org/routine/unpack> .
912
+ L < https ://doc.perl6.org/routine/unpack> .
913
913
914
914
= head2 package
915
915
@@ -957,7 +957,7 @@ Works in Perl 6, and can also be used as a method. I. e. C<my $x = pop
957
957
Not available in Perl 6. The closest equivalent is the C < :c > adverb,
958
958
which defaults to C < $/.to > if C < $/ > is true, and C < 0 > if it isn't. For
959
959
information on C < :c > , see
960
- L < http ://doc.perl6.org/language/regexes#Continue> .
960
+ L < https ://doc.perl6.org/language/regexes#Continue> .
961
961
962
962
= head2 print
963
963
@@ -973,7 +973,7 @@ C<print> can be used as a function in Perl 6, defaulting to standard
973
973
out. To use C < print > as a function with a filehandle I < instead > of
974
974
standard out, you need to put a colon after the filehandle. I. e.
975
975
C < print $fh: "Howdy!" > . The use of the colon as an "invocant marker"
976
- here is discussed at L < http ://design.perl6.org/S03.html#line_4019> .
976
+ here is discussed at L < https ://design.perl6.org/S03.html#line_4019> .
977
977
Alternately, you can use a method call: C < $fh.print("howdy!") >
978
978
979
979
= head2 printf
@@ -1020,7 +1020,7 @@ These survive the transition to Perl 6. Some notes:
1020
1020
C < qw/.../ > is more commonly rendered as C << <...> >> in Perl 6.
1021
1021
1022
1022
There are some added quoting constructs and equivalents, as explained at
1023
- L < http ://doc.perl6.org/language/quoting> .
1023
+ L < https ://doc.perl6.org/language/quoting> .
1024
1024
1025
1025
= item qr/STRING/
1026
1026
@@ -1034,7 +1034,7 @@ C<$foo> will treat C<$foo> as a literal string, and using C<< <$foo> >>
1034
1034
will interpret the contents of C < $foo > as regex code. Note that the
1035
1035
angle brackets are doing something different here than they do outside a
1036
1036
regex. For more information on this, see
1037
- L < http ://design.perl6.org/S05.html#Extensible_metasyntax_(%3C...%3E)>
1037
+ L < https ://design.perl6.org/S05.html#Extensible_metasyntax_(%3C...%3E)>
1038
1038
1039
1039
= head2 rand
1040
1040
@@ -1045,8 +1045,8 @@ it an argument. You can, however, use it as a method on a number to get
1045
1045
that behavior. I. e. the Perl 5 C < rand(100) > is equivalent to
1046
1046
C < 100.rand > in Perl 6. Additionally, you can get a random integer by
1047
1047
using something like C < (^100).pick > . For I < why > you are able to do that,
1048
- see L < http ://doc.perl6.org/language/operators#prefix_%5E> and
1049
- L < http ://doc.perl6.org/routine/pick> .
1048
+ see L < https ://doc.perl6.org/language/operators#prefix_%5E> and
1049
+ L < https ://doc.perl6.org/routine/pick> .
1050
1050
1051
1051
= head2 read
1052
1052
@@ -1062,15 +1062,15 @@ documented to exist at this time.
1062
1062
= item readdir DIRHANDLE
1063
1063
1064
1064
Not a builtin function. To iterate through the contents of a directory,
1065
- take a look at L < http ://doc.perl6.org/type/IO::Path#routine_dir> .
1065
+ take a look at L < https ://doc.perl6.org/type/IO::Path#routine_dir> .
1066
1066
1067
1067
= head2 readline
1068
1068
1069
1069
= item readline
1070
1070
1071
1071
Not available in Perl 6. You most likely want to use the C < .lines >
1072
1072
method in some way. For more detailed information on reading from files,
1073
- see L < http ://doc.perl6.org/language/io> .
1073
+ see L < https ://doc.perl6.org/language/io> .
1074
1074
1075
1075
= head2 readlink
1076
1076
@@ -1177,7 +1177,7 @@ substitution operator exists. If you're trying to rewrite some
1177
1177
Perl 5 code, the most important difference is that C < =~ > is replaced
1178
1178
by the smart match operator, C < ~~ > . Similarly, C < !~ > is C < !~~ > .
1179
1179
Options for regex operators are adverbs and are complicated. For
1180
- details, see L < http ://doc.perl6.org/language/regexes#Adverbs>
1180
+ details, see L < https ://doc.perl6.org/language/regexes#Adverbs>
1181
1181
1182
1182
= head2 say
1183
1183
@@ -1191,7 +1191,7 @@ C<say> can be used as a function, defaulting to standard out. To use
1191
1191
C < say > as a function with a filehandle I < instead > of standard out, you
1192
1192
need to put a colon after the filehandle. I. e. C < say $fh: "Howdy!" > .
1193
1193
The use of the colon as an "invocant marker" here is discussed at
1194
- L < http ://design.perl6.org/S03.html#line_4019> . Alternately, you can use
1194
+ L < https ://design.perl6.org/S03.html#line_4019> . Alternately, you can use
1195
1195
a method call: C < $fh.say("howdy!") >
1196
1196
1197
1197
= head2 scalar
@@ -1316,7 +1316,7 @@ C<sort> exists in Perl 6, but is somewhat different. C<$a> and C<$b> are
1316
1316
no longer special (See L < 5to6-perlvar.pod > ) and sort routines no
1317
1317
longer return positive integers, negative integers, or 0, but rather
1318
1318
C < Order::Increase > , C < Order::Same > , or C < Order::Decrease > objects. See
1319
- L < http ://doc.perl6.org/routine/sort> for details. May also be used as a
1319
+ L < https ://doc.perl6.org/routine/sort> for details. May also be used as a
1320
1320
method I. e. C < sort(@a) > is equivalent to C < @a.sort > .
1321
1321
1322
1322
= head2 splice
@@ -1356,7 +1356,7 @@ you wish to have the delimiters included in the resulting list, you need
1356
1356
to use the named parameter C < :all > , like this: C < split(';', "a;b;c",
1357
1357
:all) # a ; b ; c > Empty chunks are not removed from the result list as
1358
1358
they are in Perl 5. For that behavior, see C < comb > . Details on C < split >
1359
- are at L < http ://doc.perl6.org/routine/split> . Unsurprisingly, C < split >
1359
+ are at L < https ://doc.perl6.org/routine/split> . Unsurprisingly, C < split >
1360
1360
also now works as a method: C < "a;b;c".split(';') >
1361
1361
1362
1362
= item split
@@ -1466,7 +1466,7 @@ C<@_> still contains what is passed to the function. So, in theory, you
1466
1466
don't need to change that aspect of a function if porting from Perl 5 to
1467
1467
Perl 6 (although you should probably consider the option of using a
1468
1468
signature). For all the gory details, see
1469
- L < http ://doc.perl6.org/language/functions> .
1469
+ L < https ://doc.perl6.org/language/functions> .
1470
1470
1471
1471
= head2 __SUB__
1472
1472
@@ -1521,8 +1521,8 @@ C<IO> classes somewhere.
1521
1521
1522
1522
= item system PROGRAM LIST
1523
1523
1524
- For this, you probably want C < run > (L < http ://doc.perl6.org/routine/run> )
1525
- or C < shell > (L < http ://doc.perl6.org/routine/shell> ).
1524
+ For this, you probably want C < run > (L < https ://doc.perl6.org/routine/run> )
1525
+ or C < shell > (L < https ://doc.perl6.org/routine/shell> ).
1526
1526
1527
1527
= head2 syswrite
1528
1528
@@ -1582,7 +1582,7 @@ better documented, called C<.trans>. C<.trans> uses a list of pairs, as
1582
1582
follows: C << $x.trans(['a'..'c'] => ['A'..'C'], ['d'..'q'] =>
1583
1583
['D'..'Q'], ['r'..'z'] => ['R'..'Z']); >> A much more extensive
1584
1584
description of the uses of C < .trans > can be found at
1585
- L < http ://design.perl6.org/S05.html#Transliteration> . The C < y/// >
1585
+ L < https ://design.perl6.org/S05.html#Transliteration> . The C < y/// >
1586
1586
equivalent has been done away with.
1587
1587
1588
1588
= head2 truncate
@@ -1606,7 +1606,7 @@ Works as a function and a method. C<uc("ha")> and C<"ha".uc> both return "HA".
1606
1606
= item ucfirst
1607
1607
1608
1608
Perl 6 has done away with C < ucfirst > . The title case function C < tc > probably
1609
- does what you need here. L < http ://doc.perl6.org/routine/tc>
1609
+ does what you need here. L < https ://doc.perl6.org/routine/tc>
1610
1610
1611
1611
= head2 umask
1612
1612
@@ -1645,7 +1645,7 @@ The zero argument (implicit C<$_>) version of unlink is not available in Perl
1645
1645
1646
1646
Available in Perl 6. The template options are currently more restricted
1647
1647
than they are in Perl 5. The current documented list can be found at
1648
- L < http ://doc.perl6.org/routine/unpack> .
1648
+ L < https ://doc.perl6.org/routine/unpack> .
1649
1649
1650
1650
1651
1651
= head2 unshift
@@ -1735,7 +1735,7 @@ There is no C<wantarray> in Perl 6.
1735
1735
1736
1736
C < warn > throws an exception. To simply print a message to C < $*ERR > , you
1737
1737
would use the C < note > function. For more on exceptions, see
1738
- L < http ://doc.perl6.org/language/exceptions> .
1738
+ L < https ://doc.perl6.org/language/exceptions> .
1739
1739
1740
1740
= head2 write
1741
1741
0 commit comments