1) You can use the backticks (``) or qx// quoting to capture the
output which you can then write to a file

2) Use the Perl select command. From the Perldoc:
select FILEHANDLE
... a write or a print without a filehandle will default to this FILEHANDLE

3) Use the shell's own redirection. See
http://tldp.org/LDP/abs/html/io-redirection.html
system("host -W 1 $ip 1>>reverse.txt")

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to