@@ -90,7 +90,7 @@ The documentation for this can be found at
90
90
L < https://doc.perl6.org/type/IO::Path#File_Test_operators > .
91
91
92
92
There is more information on reading and writing files at
93
- L < https://doc.perl6.org /language/io> . Also, the section on C < open() >
93
+ L < io| /language/io> . Also, the section on C < open() >
94
94
below may be helpful.
95
95
96
96
= head2 abs
@@ -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 < https://doc.perl6.org /language/exceptions> . To omit the stacktrace
319
+ See L < exceptions| /language/exceptions> . To omit the stacktrace
320
320
and location, like Perl 5's C < die "...\n" > , use:
321
321
322
322
note "...";
@@ -615,7 +615,7 @@ may not be the best way to go for this.
615
615
Was never a builtin function in Perl 5 in the first place. In Perl 6,
616
616
typically, one declares functions as exportable or not, and all the
617
617
exportable ones are exported. Nevertheless, selective importing is
618
- possible, but beyond the scope of this document. For details, see
618
+ possible, but beyond the scope of this document. For details, see
619
619
L < https://doc.perl6.org/language/5to6-nutshell#Importing_specific_functions_from_a_module > .
620
620
621
621
= head2 index
@@ -875,7 +875,7 @@ The most obvious change from Perl 5 is the file mode syntax. To open a
875
875
file for reading only, you would say C < open("file", :r) > . For write-
876
876
only, read-write, and append, you would use C < :w > , C < :rw > , and C < :a >
877
877
respectively. There are also options for encoding and how the filehandle
878
- deals with newlines. Details at L < https://doc.perl6.org /routine/open> .
878
+ deals with newlines. Details L < here| /routine/open> .
879
879
880
880
= head2 opendir
881
881
@@ -911,7 +911,7 @@ The same in Perl 6.
911
911
912
912
Available in Perl 6. The template options are currently more restricted
913
913
than they are in Perl 5. The current documented list can be found at
914
- L < https://doc.perl6.org /routine/unpack> .
914
+ L < unpack| /routine/unpack> .
915
915
916
916
= head2 package
917
917
@@ -1022,7 +1022,7 @@ These survive the transition to Perl 6. Some notes:
1022
1022
qw/.../ # is more commonly rendered as C << <...> >> in Perl 6.
1023
1023
1024
1024
There are some added quoting constructs and equivalents, as explained at
1025
- L < https://doc.perl6.org /language/quoting> .
1025
+ L < quoting| /language/quoting> .
1026
1026
1027
1027
= item qr/STRING/
1028
1028
@@ -1048,7 +1048,7 @@ that behavior. I. e. the Perl 5 C<rand(100)> is equivalent to
1048
1048
C < 100.rand > in Perl 6. Additionally, you can get a random integer by
1049
1049
using something like C < (^100).pick > . For I < why > you are able to do that,
1050
1050
see L < https://doc.perl6.org/language/operators#prefix_%5E > and
1051
- L < https://doc.perl6.org /routine/pick> .
1051
+ L < pick| /routine/pick> .
1052
1052
1053
1053
= head2 read
1054
1054
@@ -1072,7 +1072,7 @@ take a look at L<https://doc.perl6.org/type/IO::Path#routine_dir>.
1072
1072
1073
1073
Not available in Perl 6. You most likely want to use the C < .lines >
1074
1074
method in some way. For more detailed information on reading from files,
1075
- see L < https://doc.perl6.org /language/io> .
1075
+ see L < io| /language/io> .
1076
1076
1077
1077
= head2 readlink
1078
1078
@@ -1318,7 +1318,7 @@ C<sort> exists in Perl 6, but is somewhat different. C<$a> and C<$b> are
1318
1318
no longer special (See L < 5to6-perlvar > ) and sort routines no
1319
1319
longer return positive integers, negative integers, or 0, but rather
1320
1320
C < Order::Increase > , C < Order::Same > , or C < Order::Decrease > objects. See
1321
- L < https://doc.perl6.org /routine/sort> for details. May also be used as a
1321
+ L < sort| /routine/sort> for details. May also be used as a
1322
1322
method I. e. C < sort(@a) > is equivalent to C < @a.sort > .
1323
1323
1324
1324
= head2 splice
@@ -1358,7 +1358,7 @@ you wish to have the delimiters included in the resulting list, you need
1358
1358
to use the named parameter C < :all > , like this: C < split(';', "a;b;c",
1359
1359
:all) # a ; b ; c > Empty chunks are not removed from the result list as
1360
1360
they are in Perl 5. For that behavior, see C < comb > . Details on C < split >
1361
- are at L < https://doc.perl6.org /routine/split> . Unsurprisingly, C < split >
1361
+ are L < here| /routine/split> . Unsurprisingly, C < split >
1362
1362
also now works as a method: C < "a;b;c".split(';') >
1363
1363
1364
1364
= item split
@@ -1472,7 +1472,7 @@ C<@_> still contains what is passed to the function. So, in theory, you
1472
1472
don't need to change that aspect of a function if porting from Perl 5 to
1473
1473
Perl 6 (although you should probably consider the option of using a
1474
1474
signature). For all the gory details, see
1475
- L < https://doc.perl6.org /language/functions> .
1475
+ L < functions| /language/functions> .
1476
1476
1477
1477
= head2 __SUB__
1478
1478
@@ -1527,8 +1527,8 @@ C<IO> classes somewhere.
1527
1527
1528
1528
= item system PROGRAM LIST
1529
1529
1530
- For this, you probably want C < run > (L < https://doc.perl6.org /routine/run> )
1531
- or C < shell > (L < https://doc.perl6.org /routine/shell> ).
1530
+ For this, you probably want (L < run| /routine/run> )
1531
+ or (L < shell routine| /routine/shell> ).
1532
1532
1533
1533
= head2 syswrite
1534
1534
@@ -1612,7 +1612,7 @@ Works as a function and a method. C<uc("ha")> and C<"ha".uc> both return "HA".
1612
1612
= item ucfirst
1613
1613
1614
1614
Perl 6 has done away with C < ucfirst > . The title case function C < tc > probably
1615
- does what you need here. L < https://doc.perl6.org/ routine/tc>
1615
+ does what you need here. L < tc|/ routine/tc> function.
1616
1616
1617
1617
= head2 umask
1618
1618
@@ -1650,8 +1650,8 @@ The zero argument (implicit C<$_>) version of unlink is not available in Perl
1650
1650
= item unpack TEMPLATE
1651
1651
1652
1652
Available in Perl 6. The template options are currently more restricted
1653
- than they are in Perl 5. The current documented list can be found at
1654
- L < https://doc.perl6.org /routine/unpack> .
1653
+ than they are in Perl 5. The current documented list can be found
1654
+ L < here| /routine/unpack> .
1655
1655
1656
1656
1657
1657
= head2 unshift
@@ -1808,7 +1808,7 @@ not advised:
1808
1808
1809
1809
C < warn > throws an exception. To simply print a message to C < $*ERR > , you
1810
1810
would use the C < note > function. For more on exceptions, see
1811
- L < https://doc.perl6.org /language/exceptions> .
1811
+ L < Exceptions| /language/exceptions> .
1812
1812
1813
1813
= head2 write
1814
1814
0 commit comments