Skip to content

Commit c5fb804

Browse files
authored
Merge pull request #2517 from finanalyst/master
make links cannonical We should probably add some recommendation and/or test to avoid this kind of links in the future. Great job, as usual, Richard
2 parents b4a003b + d8c2b04 commit c5fb804

File tree

156 files changed

+1240
-1241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+1240
-1241
lines changed

doc/Language/101-basics.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ here means strings separated by whitespace.
142142
It turns the single string C<'Beth Ana Charlie Dave'> into the list of
143143
strings C<'Beth', 'Ana', 'Charlie', 'Dave'>.
144144
145-
Finally, this list gets stored in the L<Array> C<@names>. The C<@> sigil marks
145+
Finally, this list gets stored in the L<Array|/type/Array> C<@names>. The C<@> sigil marks
146146
the declared variable as an C<Array>. Arrays store ordered lists.
147147
148148
=begin code

doc/Language/5to6-perlfunc.pod6

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ L<here|/language/control#proceed>.
181181
=item caller EXPR
182182
183183
There are a couple different ways to get at caller information in Perl 6.
184-
The basic functionality is provided through L<callframe> now. However, Perl 6
184+
The basic functionality is provided through L<callframe|/type/callframe> now. However, Perl 6
185185
constructs call frames for regular blocks, not just for subroutines, so there
186186
are more frames to look through. The following will retrieve the basic
187187
information that C<caller> can return:
@@ -205,7 +205,7 @@ L«C<&?BLOCK>|/language/variables#Compile-time_variables»,
205205
L«C<$?PACKAGE>|/language/variables#Compile-time_variables»,
206206
L«C<$?FILE>|/language/variables#Compile-time_variables», and
207207
L«C<$?LINE>|/language/variables#Compile-time_variables». For many purposes,
208-
L<Backtrace> may provide an easier way to browse through the call stack.
208+
L<Backtrace|/type/Backtrace> may provide an easier way to browse through the call stack.
209209
210210
The Perl 6 ecosystem has a module L<C<P5caller>|https://modules.perl6.org/dist/P5caller>
211211
which exports a C<caller> function that mimics the original Perl 5 behaviour
@@ -218,7 +218,7 @@ as much as possible.
218218
Works as it does in Perl 5 but B<must> take an argument. The behaviour
219219
of C<chdir()> (with regards to looking at HOME and LOGDIR) is not supported.
220220
221-
In Perl 6, L<chdir> only changes the C<$*CWD> dynamic variable. It does
221+
In Perl 6, L<chdir|/type/chdir> only changes the C<$*CWD> dynamic variable. It does
222222
B<not> actually change the default directory from the OS's point of view; the
223223
special dynamic-variable routine L«C<&*chdir>|/routine/&*chdir» can be used
224224
for that, if needed.
@@ -747,7 +747,7 @@ IO::Socket object, but details are unclear.
747747
=item glob EXPR
748748
749749
Not available in core, although some of the functionality is offered by
750-
L<dir> routine and its C<test> argument.
750+
L<dir|/type/dir> routine and its C<test> argument.
751751
752752
See L«C<IO::Glob> module in ecosystem|https://modules.perl6.org/dist/IO::Glob»
753753
@@ -949,7 +949,7 @@ much as possible.
949949
950950
=item link OLDFILE, NEWFILE
951951
952-
See L<link>
952+
See L<link|/type/link>
953953
954954
=head2 listen
955955
@@ -1146,7 +1146,7 @@ only, read-write, and append, you would use C<:w>, C<:rw>, and C<:a>
11461146
respectively. There are also options for encoding and how the filehandle
11471147
deals with newlines. Details L<here|/routine/open>.
11481148
1149-
Another important change is that filehandles don't get automatically closed on scope exit. It's necessary to call L<close> explicitly.
1149+
Another important change is that filehandles don't get automatically closed on scope exit. It's necessary to call L<close|/type/close> explicitly.
11501150
11511151
=head2 opendir
11521152
@@ -1949,7 +1949,7 @@ C<"hola!".substr(1, 3)> both return "ola".
19491949
19501950
=item symlink OLDFILE, NEWFILE
19511951
1952-
See L<symlink>.
1952+
See L<symlink|/type/symlink>.
19531953
19541954
=head2 syscall
19551955
@@ -2060,7 +2060,7 @@ as much as possible.
20602060
Works similarly to how it does in Perl 5. The one caveat is that ranges are
20612061
specified differently. Instead of using a range "a-z", you would use "a..z",
20622062
i.e. with Perl's range operator. In Perl 6, C<tr///> has a method version,
2063-
called L<trans>, which offers a few additional features.
2063+
called L<trans|/type/trans>, which offers a few additional features.
20642064
20652065
Perl 5's C</r> flag is instead implemented as C<TR///> operator.
20662066
The C<y///> equivalent does not exist.
@@ -2165,7 +2165,7 @@ as much as possible.
21652165
21662166
=item untie VARIABLE
21672167
2168-
Not supported in Perl 6, but see L<tie> for the whole story.
2168+
Not supported in Perl 6, but see L<tie|/type/tie> for the whole story.
21692169
21702170
The Perl 6 ecosystem has a module L<C<P5tie>|https://modules.perl6.org/dist/P5tie>
21712171
which exports an C<untie> function that mimics the original Perl 5 behaviour

doc/Language/5to6-perlvar.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ react {
296296
=item $^T
297297
298298
Replaced in Perl 6 by C<$*INIT-INSTANT>. Unlike in Perl 5, this is not in
299-
seconds since epoch, but an L<Instant> object, which is measured in atomic
299+
seconds since epoch, but an L<Instant|/type/Instant> object, which is measured in atomic
300300
seconds, with fractions.
301301
302302
=item $PERL_VERSION
@@ -478,7 +478,7 @@ Currently no obvious equivalent.
478478
479479
No direct replacement exists.
480480
481-
When iterating using L<lines> method from L<IO::Path> or L<IO::Handle> types,
481+
When iterating using L<lines|/type/lines> method from L<IO::Path> or L<IO::Handle> types,
482482
you can call the C<.kv> method on it to get an interleaved list of indexes and values (then iterate by 2 each loop):
483483
484484
=begin code
@@ -523,7 +523,7 @@ C<$*OUT.nl-out>.
523523
=item $|
524524
525525
No global alternative available. TTY handles are unbuffered by default, for
526-
others, set L<out-buffer> to zero or use C<:!out-buffer> with L<open> on a
526+
others, set L<out-buffer> to zero or use C<:!out-buffer> with L<open|/type/open> on a
527527
specific L<IO::Handle>.
528528
529529
=item ${^LAST_FH}

doc/Language/classtut.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ X<|Submethod>
4141
You can also provide your own construction and C<BUILD>
4242
implementation. The following, more elaborate example shows how a
4343
dependency handler might look in Perl 6. It showcases custom
44-
constructors, private and public attributes, L<Submethod>s, methods, and
44+
constructors, private and public attributes, L<Submethod|/type/Submethod>s, methods, and
4545
various aspects of signatures. It's not a lot of code, and yet the
4646
result is interesting and useful.
4747
@@ -441,7 +441,7 @@ The biggest difference between constructors in Perl 6 and constructors in
441441
languages such as C# and Java is that rather than setting up state on a
442442
somehow already magically created object, Perl 6 constructors
443443
create the object themselves. The easiest way to do this is by calling the
444-
L<bless> method, also inherited from L<Mu>. The C<bless> method expects a
444+
L<bless|/type/bless> method, also inherited from L<Mu|/type/Mu>. The C<bless> method expects a
445445
set of named parameters to provide the initial values for each attribute.
446446
447447
The example's constructor turns positional arguments into named arguments,
@@ -795,4 +795,4 @@ it in a narrative way.
795795
796796
=end pod
797797

798-
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
798+
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)