[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

RE: [FWP] perl5 is 5



> From: Richard Proctor [mailto:Richard@waveney.demon.co.uk]
> Sent: Tuesday, October 19, 1999 09:47
> To: fwp@technofile.org
> Subject: [FWP] perl5 is 5
>
> perl5 is 5.
>
> So in the spirit of JAPH:
>
> for(0..3){print"Happy birthday ".(/2/?"dear perl5":"to
> you").(/3/?".":",")."\n"}
>
> Can anybody get it smaller...

Sure, using perl5.005; also correcting spelling and using single quotes
where possible.

  print'Happy birthday '.(/2/?'dear Perl5':'to
you').(/3/?".\n":",\n")for 0..3;

--
Larry Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com



==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe