Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Don't ask to ask, just ask
 
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 making s'mores by the fire in the courtyard of the Monastery: (17)
As of 2014-04-16 14:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (429 votes), past polls