It's pretty easy - all you have to do is open STDERR as a filehandle, directed to /dev/null:
#!/usr/bin/perl -w use strict; open (STDERR, "/dev/null"); select STDERR; print "hi mum!";
for example.
You might also want to read perlfaq8, including "How can I capture STDERR from an external command?", or type "perldoc -q STDERR".
In reply to Re: Output redirection -- hard
by mischief
in thread Output redirection -- hard
by dorp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |