Perl - getting a value from a hash where the key has a dot
Posted
by imerez
on Stack Overflow
See other posts from Stack Overflow
or by imerez
Published on 2010-04-15T17:09:48Z
Indexed on
2010/04/15
17:23 UTC
Read the original article
Hit count: 255
I have a hash in Perl which has been dumped into from some legacy code the name of the key has now changed from simply reqHdrs to reqHdrs.bla
$rec->{reqHdrs.bla}
My problem is now I cant seem to access this field from the hash any ideas? The following is my error
Download Script Output: Bareword "reqHdrs" not allowed while "strict subs" in use
© Stack Overflow or respective owner