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

[FWP] Does this qualify as self-replication?



Does this qualify as self-replicating code?

seek(DATA,0,0);print <DATA>;__DATA__

And why doesn't __DATA__ have to be at the start of a line?

<chaim>

(On a seperate note. Obviously that works if it is contained in a
file. What I don't understand is why using shell-command-on-region
from emacs it works.  But _not_ when piping the command with an
echo. If its the fact that one can not seek on a pipe, what is emacs
doing that makes it work?)

-- 
Chaim Frenkel					     Nonlinear Knowledge, Inc.
chaimf@pobox.com				               +1-718-236-0183

==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org