Why Have I: "Use of uninitialized value in string eq " ?use strict; sub askName { chomp(my $nome=<STDIN>); my %nomi=( "fred"=>'flinstone', "barney"=>'rubble', "wilma"=>'flinstone' ); for (%nomi) { print $_ if ($nomi{$_} eq $nome); } } &askName;
In reply to Use of uninitialized value in string eq by saintex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |