in reply to Re^2: Manipulate deepest values in complex hash structures
in thread Manipulate deepest values in complex hash structures
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!