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

Re: How do I use hashref slices?

by danger (Priest)
on May 29, 2002 at 18:35 UTC ( #170184=note: print w/replies, xml ) Need Help??

in reply to How do I use hashref slices?

@{$t}{qw/first second third/} = qw/one two three/; # or just: @$t{qw/first second third/} = qw/one two three/;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://170184]
[choroba]: To avoid accidental overwriting of the variable in if ($x = 3)
[karlgoethebier]: Corion: Auch in hessisch? Mer wasses net.
[Corion]: Hmm - I'm not sure, I haven't read the mundart/slang translations ;)
[Eily]: $F[1] =~ s/^0//r could be written as (0+$F[1]). It's less explicit though
[Discipulus]: ah! seems wise choroba, you play safe
[shmem]: Eily: also -+-$F[1]
[shmem]: hmm... there should be a glyph for "bembel" in unicode "miscellaneous symbols"

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2017-05-24 08:44 GMT
Find Nodes?
    Voting Booth?