[Israel.pm] Perl signature - TTW (time to weekend)

Srikanth Madani srikanth.madani at vodafone.com
Thu Mar 18 07:59:43 PST 2004


Mikhael wrote:
>perl -e '@_=localtime,print$_[6]>5?"Enjoy":(5-$_[6])*24-$_[2]." hours
until",
" the weekend"'

Very nice!
Can you please provide the expanded version please - I can't figure out how
the array assignment can be concatenated with the print statement.

Cheers,
Srikanth Madani




More information about the Perl mailing list