in reply to dynamic scalar names?
Note that it is a good thing to always use strict and only loosen that when it's really needed.use strict; { # variable variable stuff allowed in here no strict 'refs'; $name = 'foo'; $$name = $value; # does: $foo = $value } # no more variable variable stuff anymore
Liz
Update: You're better off using a hash.
|
---|