http://qs321.pair.com?node_id=674424


in reply to File open problem with "GLOB"

...and once you've got all your filehandle problems sorted out, you'll notice that it still doesn't work, because you've got
$te->parse_file($input);
which is for files/filehandles. You just want
$te->parse($input);
because you're working on a string.


Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...

Replies are listed 'Best First'.
Re^2: File open problem with "GLOB"
by mcoblentz (Scribe) on Mar 16, 2008 at 05:45 UTC
    Ah, Thanks Cody. I would have struggled with that one for a while. I was indeed getting a parse error there. I presume that's what
    Unsuccessful open on filename containing newline at C:/Perl/lib/HTML/P +arser.pm line 95. at C:/Perl/lib/HTML/Parser.pm line 95 HTML::Parser::parse_file('HTML::TableExtract=HASH(0x26dff64)', + '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"...') +called at cruise_ships2.pl line 59 main::(cruise_ships2.pl:62): my ($ts,$row);
    was trying to tell me...