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

Re: [FWP] perl5 is 5



On Tue, Oct 19, 1999 at 05:46:52PM +0100, 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...
> 

Yes.  73 characters:

print$a='Happy birthday',$b=' to you',",\n$a$b,\n$a dear perl5,\n$a$b.\n"


Ronald

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