Content deleted Content added
Stevebroshar (talk | contribs) →Examples: Merge Ruby into scripting section |
Stevebroshar (talk | contribs) →Block in Perl: shorten for brevity |
||
Line 403:
<syntaxhighlight lang="perl">
=item Pod::List-E<gt>new()
Create a new list object. Properties may be specified through a hash
reference like this:
my $list = Pod::List->new({ -start => $., -indent => 4 });
=cut
sub new {
...
Line 426 ⟶ 422:
#`{{ "commenting out" this version
toggle-case(Str:D $s)
Toggles the case of each character in a string:
my Str $toggled-string = toggle-case("mY NAME IS mICHAEL!");
}}
sub toggle-case(Str:D $s) #`( this version of parens is used now ){
...
|