This tries to treat $pos[$depth] as a scalar reference and dereference it. But that array entry is just a plain scalar, so you don't need to dereference it at all.if ($config{debug}) { print "pos[depth]: " . ${$pos[$depth]} . "\n" }
I'm guessing though, since I didn't take the time to run your code.
In reply to Re: Setting the value of a complicated hash ref
by Matts
in thread Setting the value of a complicated hash ref
by blahblah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |