The stupid question is the question not asked | |
PerlMonks |
Re: Bad file descriptor after vmran command using system()by daxim (Curate) |
on Apr 08, 2013 at 12:52 UTC ( [id://1027495]=note: print w/replies, xml ) | Need Help?? |
You're using system() incorrectly, specifically its return value. The error message is misleading, $! contains junk from a previous system call. Using system() correctly is very difficult, have a peek at the official documentation. All Perl built-ins suck, this one sucks the most.
Instead use autodie for proper error handling, it's tested and you get nice default error messages:
In Section
Seekers of Perl Wisdom
|
|