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 eve

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
Ramprasad wrote: > I cant beleive this , it seems so impossible can anyone help me I can. You ae not using strict. > ... > @host_array = ; # no my > $p = Net::Ping->new("icmp"); # no my > $p->bind("192.168.2.211"); # Specify source interface of pings [with no my

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; autoflu

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 STDOU