Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Perl 6 version of cheatsheet

by adrianh (Chancellor)
on Nov 16, 2003 at 21:48 UTC ( #307501=note: print w/replies, xml ) Need Help??


in reply to Re: Perl 6 version of cheatsheet
in thread perlcheat

It's a Perl 6 change :-)

Replies are listed 'Best First'.
Re^3: Perl 6 version of cheatsheet
by ysth (Canon) on Nov 16, 2003 at 22:06 UTC
    To be more verbose, in perl6 the sigils become part of the variable name. Everywhere you talk about @array, it will have the '@'. $array[5] instead is the 5th element of the array whose array ref is stored in the scalar $array ($array->[5] in perl5-speak.).
      I have to say: keeping the same sigil regardless of whether you're accessing elements or the whole thing is going to be very helpful for newcomers.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://307501]
help
Chatterbox?
[virtualsue]: weird. my p6 simple web spider fails to extract anchor tags from perlmonks.org
[holli]: Nice. Turns out I don't have to remove Sweet home Alabama from my playlist ;)
[Corion]: virtualsue: We have some links with a newline between <a and the attributes, maybe your extractor fails to handle that?
[virtualsue]: It's not getting any at all, which seems quite broken
virtualsue upgrades modules

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-12-13 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (360 votes). Check out past polls.

    Notices?