in reply to Re^2: Unable to extract value from hash table
in thread Unable to extract value from hash table
When code doesn't do what you expect it to do,
There are two more errors in your code:
$string contains "1", and thus $TAGS{$string} is undef. Fix:
my ($string) = $fullString =~ /([A-Za-z]+)/;
(I moved the my. There's no reason for it to be on a separate line.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Unable to extract value from hash table
by dr_dunno (Novice) on Apr 09, 2008 at 06:45 UTC | |
by ikegami (Patriarch) on Apr 09, 2008 at 06:49 UTC |