How can I use a Perl hash key that has a literal 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/16 4:03 UTC
Read the original article Hit count: 213

Filed under:
|

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

Related posts about perl

Related posts about hash