[Edinburgh-pm] A little perl help please

Eric Robertson eric.robertson at blueyonder.co.uk
Sun Feb 19 06:36:57 PST 2006

On Saturday, February 18, 2006 9:58 PM Chris Benson wrote:

>And make sure that the code to evaluate is immediately after the -e.
>In the above example, Perl will evaluate -w

>perl -lwe 'print "Friday" if 5 == (gmtime)[6]'

And for those trying this on Windows:

perl -lwe "print q(Friday) if 5 == (gmtime)[6]"

Eric Robertson
Edinburgh-pm mailing list
Edinburgh-pm at pm.org

More information about the Edinburgh-pm mailing list