Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Confused as to why the "casting context" is mis-behaving

by ig (Vicar)
on Oct 20, 2010 at 16:31 UTC ( #866359=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
           Since you can assign to a list of variables, you can also assig
    +n to an
           array or hash slice.
    ...
               ($colors{'red'}, $colors{'blue'}, $colors{'green'})
                              = (0xff0000, 0x0000ff, 0x00ff00);
               ($folks[0], $folks[-1]) = ($folks[-1], $folks[0]);
    
  2. or download this
     @days[3,4,5]        # same as ($days[3],$days[4],$days[5])
     @days{'a','c'}      # same as ($days{'a'},$days{'c'})
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2014-12-26 19:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (175 votes), past polls