in reply to Re: use strict; and command line options
in thread use strict; and command line options
This is really weird, as most switches should not behave differently if the script is invoked by the shebang rather than by calling the interpretter explicitly... Really frickin' odd.[me@host]$ cat t2.pl #!/usr/bin/perl -s use strict; use vars qw($a $b); print "a: $a\n"; print "b: $b\n"; [me@host]$ perl t2.pl -a a: b: [me@host]$ ./t2.pl -a a: 1 b: [me@host]$
------------ :Wq Not an editor command: Wq
|
|---|