[Edinburgh-pm] perl one-liner problem

A Smith asmith9983 at gmail.com
Sat Jul 19 11:16:08 PDT 2008

I was trying the Perl one liner below but it complains about an *unrecognized
switch*. despite this the value is passed into the code.  I was trying to
avoid a full script file with a getopts and its baggage.
perl -s -e "print $oldage;" -oldage=abc

Anyone got an idea what will work.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/edinburgh-pm/attachments/20080719/09aced9e/attachment.html>

More information about the Edinburgh-pm mailing list