Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: Use of do() to run lots of perl scriptsby LanX (Saint) |
on Mar 03, 2021 at 18:37 UTC ( [id://11129088]=note: print w/replies, xml ) | Need Help?? |
of course that's why I said "mechanism" and linked to the docs. do "./stat.pl" is largely like eval `cat stat.pl`; except that it's more concise, runs no external processes, and keeps track of the current filename for error messages. It also differs in that code evaluated with do FILE cannot see lexicals in the enclosing scope; eval STRING does.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|