prints:use warnings; use strict; my %hash = (CS => 4); while (<DATA>) { chomp; $hash{$_}++; print "$_$hash{$_}\n"; } __DATA__ CS CS
CS5 CS6
In reply to Re: Hash not working as intended
by toolic
in thread Hash not working as intended
by ddrew78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |