P is for Practical | |
PerlMonks |
Re^3: source a file in Linux using perl scriptby Corion (Patriarch) |
on Nov 30, 2020 at 09:50 UTC ( [id://11124390]=note: print w/replies, xml ) | Need Help?? |
I think the one drawback of re-executing yourself like that is that you lose Perl command line switches like -Ilib etc. ... There is Devel::PL_origargv, which gives you the original command line, but I'm not sure that I would want to go such an esoteric length when a shell script can do the same.
In Section
Seekers of Perl Wisdom
|
|