Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Possible pitfall with Slices

by fundflow (Chaplain)
on Nov 07, 2000 at 00:56 UTC ( #40239=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        @a[1,2,3] = @b[100,200,300];
    
  2. or download this
        @a{a,b,c}=@b[100,200,300];
    
  3. or download this
        @a{a,b,c}=1;
    
  4. or download this
        for (a,b,c,d) { print "$_\n" if $a{$_} }
    OUTPUT:
        a
    
  5. or download this
        @a{a,b,c}=(1,1,1);
    or
        @a{a,b,c}=(1)x3;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://40239]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2014-09-03 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls