and consider which $b is getting set, and why. This might require a detour into the documentation on what, exactly, 'my' does.{ my $b = '1'; my $a = 'b'; $$a = 2; print "b = $b\n"; } print "b = $b\n";
In reply to Re: Re: can't use string as a SCALAR ref while strict refs
by dws
in thread can't use string as a SCALAR ref while strict refs
by justinNEE
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |