There's more than one way to do things | |
PerlMonks |
Re: Die silently?by gg48gg (Sexton) |
on Feb 20, 2013 at 20:10 UTC ( [id://1019839]=note: print w/replies, xml ) | Need Help?? |
This is an awesome thread, especially the 'fart' code and the explanations of it. I recently ran into this "die quietly" issue using the below code. I was getting unwanted "\n"'s inserted that I could not explain. I ended up removing the "die" statement and it works as I want, but I am not sure if I am doing something incorrect (not killing my system command?). This is really my first attempt in using a timed out system command via eval/alarm. Here is my code if you care to review it and give me some feedback.
In Section
Seekers of Perl Wisdom
|
|