in reply to object method that returns object

The first argument to an object method is the object.
sub getDocumentInfo { my ($object, $file_id) = @_; # ... }
Your code was not making an adjustment for that.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a (from-home) job
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;