Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://866359]
Discipulus the pope is the last good politic here around..sigh
[Discipulus]: erix the right order of books is: The Three Musketeers, Twenty Years After, The Count of Moret; The Red Sphinx (not in the cycle but a must read!), The Vicomte de Bragelonne

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-05-24 07:11 GMT
Find Nodes?
    Voting Booth?