Re: about perl -wl

2011-03-07 Thread Erez Schatz
spoke too soon. seems that under both linux and windows perl does read the shebang line. please ignore previous comment On 7 March 2011 10:24, Erez Schatz wrote: > On 22 February 2011 17:19, Shawn H Corey wrote: >>> when I put this line in a script say a.pl: >>> #!/usr/bin/perl -wl >>> so, does

Re: about perl -wl

2011-03-07 Thread Erez Schatz
On 22 February 2011 17:19, Shawn H Corey wrote: >> when I put this line in a script say a.pl: >> #!/usr/bin/perl -wl >> so, does this make perl ignore the "wl" switch in the script? > > No, perl reads the shebang line and sets the options. perl doesn't do any such thing. In a *nix shell environme

Re: about perl -wl

2011-02-22 Thread Shawn H Corey
On 11-02-22 09:57 AM, terry peng wrote: Hi, when I put this line in a script say a.pl: #!/usr/bin/perl -wl ... And later I run it from the command line: perl a.pl so, does this make perl ignore the "wl" switch in the script? Thanks. No, perl reads the shebang line and sets the options.