Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Dynamically allocating variables

by wog (Curate)
on Dec 02, 2001 at 05:28 UTC ( [id://128944]=note: print w/replies, xml ) Need Help??


in reply to Dynamically allocating variables

Instead of trying to use variable as variable names (as you are suggesting), you should use data structures. See also perldsc. (update: Of course, Fastolfe beat me to referencing this document.)

There is a reason that perl does not let you use variables as variable names under strict; it is not an arbitrary requirement. See this set of articles for reasons why and examples of code transformed from using a variable as a variable name to not doing so.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://128944]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-19 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found