in reply to Extracting URL from HTML - but unfamiliar with OO module syntax

As above... And I doubt that parse_file wants the entire file passed to it as an array of lines ! Which is what:

$extor->parse_file(<$fh>);
will do. Which is probably the source of the first message you were getting: