Re: An Unintended Recursion
Celejar <celejar@gmail.com>:
> I was writing a simple scratch script that did little more than just
> invoke a command passed to it on the command line, and read its
> output. To my consternation, whenever it ran, system load spiked to
> 100% and remained there indefinitely. I soon realized my mistake; I
> had written something like
>
> open(my $fh, "$0 |")
>
> rather than
>
> open(my $fh, "$ARGV[0] |")
User error, in my book. Neat trick though.
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
Reply to: