in reply to scalar symbolic reference to variables
results in:$name=chr(97); $$name=1; # shall set $a to 1 print "$$name\n"; print "$a\n";
so it DOES work.1 1
But don't use $a and $b, they're used by sort.
see
perldoc -f sort perldoc perlvar
Actually, you almost never need symbolic references at all....
-- Joost downtime n. The period during which a system is error-free and immune from user input.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: scalar symbolic reference to variables
by khippy (Scribe) on May 24, 2002 at 17:32 UTC |