in reply to Program unsuspectingly dies with no reason why. -FIXED!
Here are the relevant lines:
&clean_the_file(); sub clean_the_file { my ( $sourcefile, $removeq ) = @_; `grep -v $removeq $sourcefile > $tempfile`; }
You're calling clean_the_file with no arguments, and passing those (no) arguments on to grep, which is going to hang waiting for input.
That's my guess.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Program unsuspectingly dies with no reason why.
by misconfiguration (Sexton) on Feb 13, 2008 at 21:21 UTC | |
by kyle (Abbot) on Feb 13, 2008 at 21:41 UTC | |
by misconfiguration (Sexton) on Feb 14, 2008 at 15:20 UTC | |
by kyle (Abbot) on Feb 14, 2008 at 18:59 UTC | |
by misconfiguration (Sexton) on Feb 15, 2008 at 17:00 UTC | |
| |
by toolic (Bishop) on Feb 13, 2008 at 21:35 UTC |