in reply to Help - Counting text - Associative Array?
my %exe = ( "Catalog" => {name=>'C:\Program Files\Internet Explorer\IE +XPLORE.EXE', count=> 0}, "Crime" => {name=> 'D:\crime\Reader\AcroRd32.exe', count=>0} ); # You don't need to do #if ($_ = (values %exe)) # The value of $Loop_Variable should be from the file you read #Then you can increment using $exe{$Loop_Variable}{count}++; # Finally, print using $exe{$Loop_Variable}{count};
Offense, like beauty, is in the eye of the beholder, and a fantasy.
By guaranteeing freedom of expression, the First Amendment also guarntees offense.
|
|---|