in reply to Self-printing program
You don't need to make a quine to have a program print its own source.
open my $fh, "<", $0; print <$fh>;
Or...
use O 'Deparse'; do something
Or without going back to the disk...
seek *DATA, 0, 0; print <DATA>; __DATA__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Self-printing program
by hardburn (Abbot) on Apr 02, 2004 at 17:22 UTC | |
by diotalevi (Canon) on Apr 02, 2004 at 17:29 UTC |