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