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.
In reply to Re: dynamic scalar names?
by liz
in thread dynamic scalar names?
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |