Unless when PERL is called it runs under a shell itself and I can make the decision based on the shell PERL runs under.
This is somewhat off the topic, but could you please stop shouting the language's name every time you use it?
In reply to Re^3: How do I test if my PERL script was run using a login vs a non-login shell
by Anonymous Monk
in thread How do I test if my Perl script was run using a login vs a non-login shell
by paulski82
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |