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

Re: [FWP] perl5 is 5



On Wed, Oct 20, 1999 at 07:51:31PM +0100, Richard Proctor wrote:
> I started this so I am still fighting...
> $.="\nHappy birthday ";print$;="$.to you",",$;,$.dear perl5,$;.\n"
> 66 Characters...

Here's my 66-char version:

$,="Happy birthday ";print"$,to you,\n"x2,"dear perl5,\n$,to you."

You can even shorten it to 64 bytes by not making it a one-liner:

$,="Happy birthday ";print"$,to you,
"x2,"dear perl5,
$,to you."

In Emacs, "M-| perl" makes a nice Perl one-liner development environment. :)

-- 

Adam Sampson
azz@gnu.org

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