in reply to Re^2: Perl Hash Files
in thread Perl Hash Files
The hash key will be created and the value set to undef (zero), then incremented on the first time around. Subsequent occurances of the same key will increment the value.while (<LOG>) { # Assume name of program is in $_ chomp; $hash{$_}++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl Hash Files
by blundell (Novice) on Dec 11, 2006 at 19:59 UTC | |
by jonadab (Parson) on Dec 12, 2006 at 12:46 UTC |