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

Re: [FWP] Quine, ontology, and Perl



> On Fri, 12 May 2000, Steve Lane wrote:
>
> > John Carter wrote:
> > >
> > > On Tue, 9 May 2000, Ronald J Kimball wrote:
> > >
> > > >       perl -le'print "Just another Perl hacker,"'
> > >                         123456789012345678901234
> > > > Of course, minimizing character count is not the main goal of a
JAPH.  :)
> > >
> > > Contrarywise, anyone who can print "Just another Perl hacker"
using
> > > under 24 characters has instantly earned eternal perl wizardom!
> >
> >           perl -le '$_=`man perlfaq1`;print/"(.*)" s/'
>                       123456789012345678901234567890123
> >
> > is not capitalized, and is w/o comma, but it's close (i guess).
>
> Not good enough, perhaps it can be "golfed" down.
>
> Here is one down....
>
> perl -le '$_=`man perlfaq1`;print/"(j.*)"/'

Fore!

Even shorter:

perl -le 'print`man perlfaq1`=~/"(j.*)"/'
          123456789012345678901234567890

30 characters.  :-)

I don't see anything else right now... unless you replace print with die
for 28 characters.

--
 -Ryan Fischer (ryan@gigabee.com) ICQ UIN - 595003
  GigaBee Interactive - http://www.gigabee.com/




________________________________________________________
                           1stUp.com - Free the Web
   Get your free Internet access at http://www.1stUp.com

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