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{$_}++; }
In reply to Re^3: Perl Hash Files
by cdarke
in thread Perl Hash Files
by blundell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |