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

RE: [FWP] perl5 is 5





Richard Proctor wrote:

> 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...

Arguably different output (though not to the casual observer), but two chars
shorter:

for(0..3){print"\nHappy birthday ".(/2/?"dear perl5":"to
you").","};print"\b."

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