Re: unhead
Randal L. Schwartz [EMAIL PROTECTED] wrote: perl -ne 'print unless 1..5' perl -pe '$_ x=!(1..5)' -- Keith C. Ivey [EMAIL PROTECTED] Washington, DC
Re: unhead
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, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Re: unhead
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 occasionally once you've gotten used to it. -- Keith C. Ivey [EMAIL PROTECTED] Washington, DC