This is really a shell question, not a Perl question. Usually shell commands send error messages to stderr; in my experience "--" isn't a file handle, but a flag indicating that there are no more arguments to process.
You've got a couple choices here: the easiest is use the shell's redirection operators within the command passed to system. Others would be to modify the program you're calling via system to put stderr in a specific file, or to figure out how to connect the output to stderr to a Perl filehandle. I don't even know if that's possible.
emc
At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.
—Igor Sikorsky, reported in AOPA Pilot magazine February 2003.In reply to Re: File Redirection
by swampyankee
in thread File Redirection
by rheaton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |