Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^2: ||= in Hash Slice

by Brovnik (Hermit)
on Jan 06, 2009 at 12:12 UTC ( #734416=note: print w/replies, xml ) Need Help??

in reply to Re: ||= in Hash Slice
in thread ||= in Hash Slice

$_ here is the key, which will always be defined, so the defined($item->{$_}) as above is needed.
Edit: Oops, misread the reply, apologies.

Replies are listed 'Best First'.
Re^3: ||= in Hash Slice
by ikegami (Pope) on Jan 06, 2009 at 12:31 UTC
    No it's not. It's the value.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2016-10-27 02:37 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (352 votes). Check out past polls.