in reply to Re^2: Module caller
in thread Module caller

#!perl -w print $0;
> perl zeroTest.pl zeroTest.pl

Replies are listed 'Best First'.
Re^4: Module caller
by Your Mother (Archbishop) on May 06, 2015 at 21:31 UTC
    #!/usr/bin/env perl # File is named zeroTest.pl. $0 = "Oh, sure, why not?"; print $0, $/;
    moo@cow[27]~>zeroTest.pl Oh, sure, why not?

    :P

      #!perl -w $0 = 'Oh, sure, why not?'; sleep 5; print $0;
      > perl zeroTest.pl & > ps PID PPID TTY UID STIME COMMAND 35401 3400 pty0 101 19:45:35 Oh, sure, why no 35402 3400 pty0 101 19:45:37 /usr/bin/ps > Oh, sure, why not?

      (16 character limit exceded)