output isprint "I'm a ".($INC{"mod.pm"} ? "module" : "script")."\n";
fergal@linux:~> perl mod.pm I'm a script fergal@linux:~ perl -e 'require mod' I'm a module
In reply to Re: Dual personality: Module and script
by fergal
in thread Dual personality: Module and script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |