On Thu, 2007-08-02 at 17:44 +0530, Mihir Kamdar wrote: ... Have you run it in a debugger and seen what happens?
perl -d script The snippet does not actually assign to %hash, I assume it is in the missing code but you should show a sample line from it. > while (($key, $value) = each %hash) > > { > > print $OUT_FILE $value; > > } I find this style more 'normal'. foreach my $key (keys %hash) { print $OUT_FILE $hash{$key}; } Or even this to make code predictable: foreach my $key (sort keys %hash) { print $OUT_FILE $hash{$key}; } -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/