in reply to Re^2: Error coming while using Use Strict
in thread Error coming while using Use Strict
You don't need a different filehandle when you access files sequentially. Also the previous contents of the filehandle variable is quite meaningless to its use as a filehandle. So just use something like this:
for(my $i=0;$i<$#key;$i++) { my $val; #No need to put anything in it $output_file=$key[$i].$output_file; open($val,'>:utf8',"$output_file");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Error coming while using Use Strict
by Anonymous Monk on Oct 13, 2011 at 10:12 UTC | |
by choroba (Cardinal) on Oct 13, 2011 at 10:30 UTC | |
by jethro (Monsignor) on Oct 13, 2011 at 14:02 UTC |