I would like to make my perl code to be portable to most of the OS's, I executed a following piece of code today and I have a doubt in the output which I got.
$0 - should print the program name. correct me if I am wrong. why it has printed '-e'. does $0 take effect when I use it inside a perl's code? ( I mean not from command line )perl -e 'print "$0\n"' Output:- -e
In reply to Reliability on $0 by greatshots
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |