Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: scoped namespace?

by bunnyman (Hermit)
on Jun 17, 2003 at 14:37 UTC ( [id://266499]=note: print w/replies, xml ) Need Help??


in reply to scoped namespace?

I think you are using the wrong approach to solve the problem. Instead of just doing eval on the file, actually parse the data and get it into whatever storage location it belongs in. As a bonus, you could do data validation and filter out code that should not get executed.

Whenever I see the term "namespace" I think of a hash. A hash is a portable namespace, and it can be lexically scoped using my.

Cleaning the namespace between file reads will hurt performance because only one file can be read at a time. Besides that, it sounds ugly.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-20 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found