in reply to Re: can't use string as a SCALAR ref while strict refs
in thread can't use string as a SCALAR ref while strict refs
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: can't use string as a SCALAR ref while strict refs
by jsegal (Friar) on Feb 28, 2002 at 19:29 UTC |