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

What's wrong with $^O ?

Replies are listed 'Best First'.
Re^5: caller of perl script
by BrowserUk (Patriarch) on Jun 11, 2010 at 17:04 UTC

    Whoops!

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

      $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.

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

      Cheers,

      JohnGG