Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Uer Perl Variable in txt file

by Anonymous Monk
on Aug 06, 2012 at 20:06 UTC ( #985824=note: print w/replies, xml ) Need Help??


in reply to Re: Uer Perl Variable in txt file
in thread Uer Perl Variable in txt file

eval stinks in such an application, as of course well you know.   It would only "work perfectly" in a perfect situation, and who knows what it would do at all other times.   Unacceptable.

Replies are listed 'Best First'.
Re^3: Uer Perl Variable in txt file
by rovf (Priest) on Aug 07, 2012 at 08:19 UTC
    eval stinks in such an application
    Admittedly, it at least smells funny. However, I personally don't like to tell people in those situations that it is unacceptable in an absolute sense, because we don't know what's their application is, and what risk they are willing to take (in exchange for easier programming). That's why I outlined every risk I was aware off. With other words: Instead of saying: "Don't shoot yourself in the head", I prefer saying: "You can shoot yourself in the head, but be aware that there will be a hole afterwards". ;-)


    Having said this, I must admit that I would use such an eval solution for work I only use myself (not paid work for the customer), knowing well that I can't blame anyone but myself if I get bitten....
    -- 
    Ronald Fischer <ynnor@mm.st>

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985824]
help
Chatterbox?
[Lady_Aleena]: Wouldn't I have to run the modules somehow to get their %INC?
[huck]: the first one works just fine from the command line but requires editing
[huck]: but neither will handle autoloads
[Lady_Aleena]: huck, I was thinking more along the lines of just getting all my .pm files, iterating over them, and making a big ol' hash or something.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2017-05-27 00:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?