Randal L. Schwartz [EMAIL PROTECTED] wrote:
perl -ne 'print unless 1..5'
perl -pe '$_ x=!(1..5)'
--
Keith C. Ivey [EMAIL PROTECTED]
Washington, DC
Keith == Keith C Ivey [EMAIL PROTECTED] writes:
Keith perl -pe '$_ x=!(1..5)'
FWP. Not Golf. :)
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/
Perl/Unix/security consulting, Technical writing, Comedy,
Randal L. Schwartz [EMAIL PROTECTED] wrote:
Keith perl -pe '$_ x=!(1..5)'
FWP. Not Golf. :)
Well, I'm sure there's something better than that for golf (Ton
probably has a 3-byte solution), but I think x= with a boolean
righthand side *is* fun, and it's even handy for one-liners