in reply to Output redirection -- hard
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".
|
|---|