Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: If you believe in Lists in Scalar Context, Clap your Hands

by JavaFan (Canon)
on Oct 24, 2008 at 12:26 UTC ( #719331=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @a = ()[3, 5, 6];
    @b = @c[3, 5, 6];
    ...
    __END__
    0
    3
    
  2. or download this
    $r = ($a, $b) = 0 .. 11;
    
  3. or download this
    sassign(\$r, scalar lassign([\$a, \$b], range (0, 11)))
    sub lassign {
    ...
        $$rhs = $lhs;
        $$rhs;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2014-10-24 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (137 votes), past polls