Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

(tye)Re4: Hash slices ?

by tye (Sage)
on Apr 13, 2001 at 20:23 UTC ( [id://72384]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @days[3,4,5]   # same as ($days[3],$days[4],$days[5])
  2. or download this
        scalar( @days[3,4,5] )
        @days[ scalar( 3,4,5 ) ]
        scalar( ($days[3],$days[4],$days[5]) )
        $days[5]
    
  3. or download this
    @days[3,4,@a]   # same as ($days[3],$days[4],$days[@a])
  4. or download this
    ($map{'red'}, $map{'blue'}, $map{'green'}) = (0x00f, 0x0f0, 0xf00);
  5. or download this
    # same as map assignment above
    %map = ('red',0x00f,'blue',0x0f0,'green',0xf00);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-19 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found