Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: Manipulate deepest values in complex hash structuresby pachydermic (Beadle) |
on May 01, 2013 at 17:07 UTC ( [id://1031615]=note: print w/replies, xml ) | Need Help?? |
Great post, LanX. I have two questions: For the line: $type //= "SCALAR";am I correct in thinking that this is using the or operator as you would like += or .=? So that $type takes the value "SCALAR" if it doesn't already have a value? I looked in perlop, but I wasn't aware you could use logical operators like that... My second question is how $code->($_[0]);performs the operation on $_[0]. Currently I'm trying to become more comfortable with references (and they're very confusing), so I'd appreciate it if you could point me in the correct direction. I've already read http://perldoc.perl.org/perlreftut.html, but I'm trying to make it stick now. Thanks in advance!
In Section
Seekers of Perl Wisdom
|
|