in reply to Re^5: caller of perl script
in thread caller of perl script

$0 actually is the name of current script.

$^O is the name of the operating system, and what's wrong with it is documented in perlvar.

Perl 6 - links to (nearly) everything that is Perl 6.