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

Whoops!

c>$^O</c> is the name of the currently running script, not the name of the thing from which it was started.

Replies are listed 'Best First'.
Re^6: caller of perl script
by moritz (Cardinal) on Jun 11, 2010 at 17:05 UTC
    $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.
Re^6: caller of perl script
by johngg (Canon) on Jun 11, 2010 at 17:09 UTC

    No, I think you have confused $0, (dollar-zero) script name, with $^O, (dollar-caret-uppercase oh) operating system name.

    Cheers,

    JohnGG