Re: Net::Ping Cannot redirect output !

2003-03-29 Thread Rob Dixon
R. Joseph Newton wrote: $p-bind(192.168.2.211); # Specify source interface of pings [with no my or our] But it's a method call on an existing object ;-) /R -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Net::Ping Cannot redirect output !

2003-03-29 Thread R. Joseph Newton
Rob Dixon wrote: R. Joseph Newton wrote: $p-bind(192.168.2.211); # Specify source interface of pings [with no my or our] But it's a method call on an existing object ;-) Oops, my bad. cited the wrong line--should have been: $p = Net::Ping-new(icmp); and this may even have been

Net::Ping Cannot redirect output !

2003-03-28 Thread Ramprasad
I have written a simple script that runs file when I run on command line but fails when I redirect its output I cant beleive this , it seems so impossible can anyone help me $!=1; use Net::Ping; @host_array = DATA; $p = Net::Ping-new(icmp); $p-bind(192.168.2.211); # Specify source interface of

Re: Net::Ping Cannot redirect output !

2003-03-28 Thread Rob Dixon
Ramprasad wrote: I have written a simple script that runs file when I run on command line but fails when I redirect its output I cant beleive this , it seems so impossible can anyone help me $!=1; Should be $| = 1 for autoflush. Or, more neatly: use IO::Handle; autoflush STDOUT;

Re: Net::Ping Cannot redirect output !

2003-03-28 Thread Ramprasad
Rob Dixon wrote: Ramprasad wrote: I have written a simple script that runs file when I run on command line but fails when I redirect its output I cant beleive this , it seems so impossible can anyone help me $!=1; Should be $| = 1 for autoflush. Or, more neatly: use IO::Handle;