Re: error print on closed file handle

2011-09-14 Thread John W. Krahn
Rajeev Prasad wrote: plz. advice why am i getting this error? Because the filehandle OUT_FH has NOT been opened correctly! I have checked: varilable outfile has proper path/filename How have you checked that? array allrecords has data How have you checked that? open(OUT_FH,">","$ou

Re: error print on closed file handle

2011-09-14 Thread Rajeev Prasad
thx. Shawn that fixed the issue. From: Shawn H Corey To: beginners@perl.org Sent: Wednesday, September 14, 2011 8:40 PM Subject: Re: error print on closed file handle On 11-09-14 08:38 PM, Rajeev Prasad wrote: > plz. advice why am i getting this er

Re: error print on closed file handle

2011-09-14 Thread Shawn H Corey
On 11-09-14 08:38 PM, Rajeev Prasad wrote: plz. advice why am i getting this error? I have checked: varilable outfile has proper path/filename array allrecords has data open(OUT_FH,">","$outfile"); print OUT_FH "@allrecords"; close OUT_FH; # You should test all your opens; your problem prob

Re: error print on closed file handle

2011-09-14 Thread Jeff Pang
15 сентября 2011, 04:39 от Rajeev Prasad : > plz. advice why am i getting this error? >   >   > I have checked: > varilable outfile has proper path/filename > array allrecords has data >   >   > open(OUT_FH,">","$outfile"); > print OUT_FH "@allrecords"; > close OUT_FH; >   You should always be

Re: error print on closed file handle

2011-09-14 Thread William
On Sep 15, 8:38 am, rp.ne...@yahoo.com (Rajeev Prasad) wrote: > plz. advice why am i getting this error? >   >   > I have checked: > varilable outfile has proper path/filename > array allrecords has data >   >   > open(OUT_FH,">","$outfile"); > print OUT_FH "@allrecords"; > close OUT_FH; >   >   >