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
    Oh, thanks so much for your help and sorry for the trouble. I am learning how to code in Perl and I made a silly mistake along the way (and I'm learning from them).
      No problem. Perl gives you plenty of rope with which to hang yourself.