Skip to content

Commit 92e2d38

Browse files
committed
Fixes non-breaking space and some minor changes refs #1081
1 parent fcefb9f commit 92e2d38

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

doc/Language/5to6-nutshell.pod6

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,15 @@ adverbs.
420420
421421
In Perl 5, references to anonymous arrays and hashes and subs are returned
422422
during their creation. References to existing named variables and subs were
423-
generated with the C<\> operator. the "referencing/dereferencing" metaphor does not map cleanly to the actual Perl 6 container system, so we will have to focus on the intent of the reference operators instead of the actual syntax.
423+
generated with the C<\> operator. the "referencing/dereferencing"
424+
metaphor does not map cleanly to the actual Perl 6 container system,
425+
so we will have to focus on the intent of the reference operators
426+
instead of the actual syntax.
424427
425428
=for code :lang<perl5>
426429
my $aref = \@aaa ; # Perl 5
427430
428-
This might be used for passing a reference to a routine, for instance. But in Perl 6, the default behavior is a pass by reference.
431+
This might be used for passing a reference to a routine, for instance. But in Perl 6, the default behavior is a pass by reference.
429432
430433
=begin code
431434
my @a = 4,8,15;
@@ -448,9 +451,13 @@ the dot operator C<.> is always used for object methods, but the rest does not r
448451
say $hashref->{'fire bad'};
449452
say $subref->($foo, $bar);
450453
451-
In recent versions of Perl 5 (5.20 and later), a new feature allows the use of the arrow
454+
In relatively recent versions of Perl 5 (5.20 and later), a new feature allows the use of the arrow
452455
operator for dereferencing: see
453-
L<Postfix Dereferencing|http://search.cpan.org/~shay/perl-5.20.1/pod/perl5200delta.pod#Experimental_Postfix_Dereferencing>. This can be used to create an array from a scalar. This operation is usually called I<decont>, as in decontainerization, and in Perl 6 methods such as C<.list> and C<.hash> are used:
456+
L<Postfix
457+
Dereferencing|http://search.cpan.org/~shay/perl-5.20.1/pod/perl5200delta.pod#Experimental_Postfix_Dereferencing>. This
458+
can be used to create an array from a scalar. This operation is
459+
usually called I<decont>, as in decontainerization, and in Perl 6
460+
methods such as C<.list> and C<.hash> are used:
454461
455462
=for code :lang<perl5>
456463
# Perl 5.20
@@ -461,7 +468,7 @@ L<Postfix Dereferencing|http://search.cpan.org/~shay/perl-5.20.1/pod/perl5200del
461468
462469
=for code :preamble<no strict;>
463470
# Perl 6
464-
my @a = $contains-an-array.list; # or @($arrayref)
471+
my @a = $contains-an-array.list; # or @($arrayref)
465472
my %h = $contains-a-hash.hash; # or %($hashref)
466473
467474
The "Zen" slice does the same thing:

0 commit comments

Comments
 (0)