[Edinburgh-pm] simple perl question

Chris Benson chrisb at jesmond.demon.co.uk
Sat Feb 25 11:52:19 PST 2006

On Sat, Feb 25, 2006 at 07:40:02PM +0000, asmith9983 at gmail.com wrote:
> Is it possible to run a perl one line script (i.e. -e option) along with the 
> "-s" switch option  ?

chrisb at gamma:~ $ perl -le 'print "l=$l, e=$e, s=$s"' -s -- -l -e -s
l=1, e=1, s=1

Looks like the -s has be 
* after any -e'' and 
* before the -- which is also required

This is perl, v5.8.0 built for ppc-linux
This is perl, v5.8.7 built for i486-linux-gnu-thread-multi

Chris Benson

More information about the Edinburgh-pm mailing list