Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Best way to call another perl file

by karlgoethebier (Abbot)
on Apr 02, 2015 at 17:50 UTC ( [id://1122289]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Best way to call another perl file
in thread Best way to call another perl file

"... do is about the worst"

It seems to be an ineradicable prejudice that do $file and its equivalent eval qx(cat $file) is bad practice.

It seems to be an ineradicable prejudice that do $file and its equivalent eval qx(cat $file) is bad practice per se.

Anyway, for some details about the pro and cons recipe 8.16. in the Perl Cookbook is still a good source.

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Replies are listed 'Best First'.
Re^4: Best way to call another perl file
by Anonymous Monk on Apr 02, 2015 at 19:52 UTC

    It seems to be an ineradicable prejudice that do $file and its equivalent eval qx(cat $file) is bad practice.

    Hmm, lets see, do documentation itself tells you use/require are better ... meaning actual modules are better ... most folks who do 'file'; manage to forget about namespaces and aren't coping with scoping -- when they switch to use/require they're at least forced to think about it by all the tutorials

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found