[Perl-unix-users] Problem writing to file

2003-02-18 Thread ppathan
Hi Gurus, I am writing a small perl program which does some processing on lots of files in a directory. But I get the following warning : "print() on closed filehandle OUT at home/parvez/MYWORK/PERL/PathFinders/StripText.pl line 29, line 9431." my code is as follows: ## Read the html dir $H

[Perl-unix-users] getting putput of ping command into file

2003-01-15 Thread ppathan
Hi gurus, I am trying to get the output of ping into a filehandle. My problem is that this program works on one Linux box and throws up an error on another. Pls tell me where am I goofing up. ## I get an error in this part open(PING,"-|","ping -c 30 192.168.1.1") || die "Cannot ping to 1