The simple redirection perl script.pl >file will send only STDOUT to the file.
perl script.pl 2>file will send the STDERR to the file. The 2> selects STDERR as the file handle.
This command redirects both STDOUT and STDERR to a file. perl script.pl >file 2>&1
In reply to Re^3: perl ftp
by inman
in thread perl ftp
by srini_veera
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |