require 5.8.0;$o="Just_another_Perl_Hacker";open$o,">",\$s;select $o;for($^){y$_$ $;s%....$%.\n%;die$_}
This JAPH requires Perl 5.8.0 or later to work properly.
Update: This JAPH uses a feature in Perl 5.8.0 or later that works differently in pre-5.8.0 Perl implementations. With Perl 5.8.0 or later, an in-memory file is created. In pre-5.8.0 Perls, a physical file is created. I have modified the script with the "require 5.8.0" directive to prevent this behavior, after investigating why Anonymous Monk's followup determined that the script still ran under pre-5.8.0 versions.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: An open can of worms JAPH
by Anonymous Monk on Nov 27, 2003 at 18:34 UTC | |
by davido (Cardinal) on Nov 27, 2003 at 18:41 UTC | |
by ambrus (Abbot) on Dec 03, 2003 at 13:23 UTC |