Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: NO PERL 6

by Ovid (Cardinal)
on Dec 09, 2002 at 16:06 UTC ( #218564=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Perl 6 (possible typos ahead)
    my @array = qw(foo bar baz this that the other thing);
    my $word  = @array[0];     # a single value
    my @words = @array[5,6,7]; # an array slice
    
  2. or download this
    @_[1..$#_];           # all but the first element of an argument list
    @{$var}{qw(foo bar)}; # a hash slice of a hash reference
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://218564]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2018-06-20 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (116 votes). Check out past polls.

    Notices?