Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: creating dynamically named 'my' variables

by ajwans (Scribe)
on Mar 01, 2002 at 05:19 UTC ( [id://148489]=note: print w/replies, xml ) Need Help??


in reply to creating dynamically named 'my' variables

Perhaps what I need to do is to create all my variables within a namespace, enter that namespace, then destroy the namespace when I'm finished with it.

Can anyone point me to docs for namespaces?
  • Comment on Re: creating dynamically named 'my' variables

Replies are listed 'Best First'.
Re: Re: creating dynamically named 'my' variables
by chromatic (Archbishop) on Mar 01, 2002 at 06:11 UTC
    See do FILE, and return a reference to a hash. That's much safer than eval STRING.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-19 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found