--Chris#!/usr/local/bin/perl -w use strict; use Net::FTP; { open (FH, ">debug") || die $!; *STDERR = *FH; my $ftp = Net::FTP->new ("linux", Debug => 1) || die $!; $ftp->login ("foo", "bar"); $ftp->quit; close (FH); }
In reply to (jcwren) Re: How does one redirect STDERR to a file? ((Filehandle
by jcwren
in thread How does one redirect STDERR to a file? ((Filehandle, redirection, logging))
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |