gri6507 has asked for the wisdom of the Perl Monks concerning the following question:
exec 'cat',$0;
However, as you can imagine, this is not what he had in mind. According to him, this problem is possible without any system calls, and I quote, "you can use your loop constructs, your variable/constant declarations, and a basic print to stdout function. that's it". I was completely stomped. Can anyone even suggest a means of getting this done yet ablidging to these harsh rules?
P.S. My friend is doing this in Delphi. He posed this to me not as a personal challenge but a challenge to Perl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Program prints out it's own content
by blakem (Monsignor) on Feb 08, 2002 at 09:06 UTC | |
by gri6507 (Deacon) on Feb 08, 2002 at 17:47 UTC | |
|
Re: Program prints out it's own content
by grinder (Bishop) on Feb 08, 2002 at 09:47 UTC | |
|
Re: Program prints out it's own content
by Zaxo (Archbishop) on Feb 08, 2002 at 09:12 UTC | |
|
Re: Program prints out it's own content
by dreadpiratepeter (Priest) on Feb 08, 2002 at 13:27 UTC | |
by jryan (Vicar) on Feb 09, 2002 at 01:12 UTC | |
|
Re: Program prints out it's own content
by iakobski (Pilgrim) on Feb 08, 2002 at 09:17 UTC | |
|
Re: Program prints out it's own content
by Rhose (Priest) on Feb 08, 2002 at 14:55 UTC | |
|
Re (tilly) 1: Program prints out it's own content
by tilly (Archbishop) on Feb 09, 2002 at 06:49 UTC | |
by gri6507 (Deacon) on Feb 11, 2002 at 05:44 UTC |