in reply to Re: Re: Grabbing part of an HTML page
in thread Grabbing part of an HTML page
Have you changed your outer loop and open statement yet? Let me suggest that it should now look like this:
If you don't have the "or die ...", then the failure might be a matter of not opening the file -- Perl won't generate an error on an open statement that fails, unless you explicitly test to see if it succeeds, and tell it what to say and do when it fails.for my $file ( @files_to_look_in ) { open( HTML_FILE, "<$file" ) or die "Can't open $file for input: $!" +; ...
|
|---|