Although this may actually belong in the programming forum, I figure that more Slackware users will see it here and maybe use it and/or improve upon it (I'm not exactly a programmer, but am just able ...
There are numerous ways to redirect standard error in a Perl script. You can redirect the output from one particular command, you can combine standard error with ...