The stupid question is the question not asked | |
PerlMonks |
Re: Dynamic Variable Names?by Abigail-II (Bishop) |
on Jul 23, 2002 at 15:58 UTC ( [id://184461]=note: print w/replies, xml ) | Need Help?? |
Except from the fact the eval contains a syntax error
(you'd need to escape the @), what makes you think the
eval is unsafe? There's no data coming from the outside.
The eval is as safe as any other code from the programmer.
There's a lot that can be argued against "variable names inside variable names", but security is only an argument if you use data from the untrusted environment as variable names. Abigail
In Section
Seekers of Perl Wisdom
|
|