in reply to Re: perl ftp
in thread perl ftp

Save output and errors separately
perl script.pl >output.txt 2>errors.txt
Save all output in a single file
perl script.pl >output.txt 2>&1
You can also use the UNIX tee command to view output and save it to a file. A windows version is available from http://unxutils.sourceforge.net
perl script.pl 2>&1 | tee stdout.txt