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

An Unintended Recursion

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] |")


mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator

Reply to: