Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Definitely NOT recommended, but if you turn off strict, you can accomplish what you want by:
However, I would strongly urge you to use hashes - both for safety, and convenience. Update: Also, please read Why it's stupid to `use a variable as a variable name' Another warning - there is no guarantee that the name you are attempting to create from the content of @names is a valid perl variable-identifier. You may get strange run-time errors. ..."I don't know what the facts are but somebody's certainly going to sit down with him and find out what he knows that they may not know, and make sure he knows what they know that he may not know, and that's a good thing. I think it's a very constructive exchange," --Donald Rumsfeld In reply to Re: Variable scalar creation.
by NetWallah
|
|