in reply to Getting and replacing an item of a Hash

$line->get($attribute) has nothing to do with hashes or arrays. $line here is either a class (package name) or (most likely) an object. You can probably do:
print ref($line) || $line __END__ Classname
to see which package/class it is, and then see the docs or the code for that class.