in reply to Re: Print hash value even if it's zero
in thread Print hash value even if it's zero
open OUT, ">>$outfile" or die "Can't open $outfile for writing: $!\n"; print_hash_cvs(%jobstats); close OUT; exit(0); sub print_hash_cvs { my (%hash) = @_; my ( $key, $val ); foreach $key ( keys %hash ) { $val = $hash{$key}; print OUT "$val|"; } print OUT "$yesterday|$today\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Print hash value even if it's zero
by dws (Chancellor) on Nov 18, 2002 at 20:49 UTC | |
by blink (Scribe) on Nov 18, 2002 at 22:18 UTC |