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

Re: [FWP] print thyself [golf]



Etienne Grossmann <etienne@isr.isr.ist.utl.pt> writes:

| perl -e myscript|perl|perl|perl|perl 

A more interesting variation of this problem:

Write a program that prints out another working perlprogram, and when
given the option -v it should print out which generation it is. For
example:

$perl me -v
1
$perl me | perl | perl | perl - -v
4

-- 
David.

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