On Thursday 01 November 2007 20:05, yitzle wrote:
>
> 1) You can use the backticks (``) or qx// quoting to capture the
> output which you can then write to a file

1.5) Use piped open:

open PIPE, '-|', 'host', '-W', '1', $ip or die "Cannot open pipe from 
'host' $!";


> 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")


John
-- 
use Perl;
program
fulfillment

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


Reply via email to