in reply to Re: Grabbing part of an HTML page
in thread Grabbing part of an HTML page

pbeckingham, Thanks for your reply. I tried this and it still doesn't work. I do not get an error, but just nothing gets printed. One question, if I wanted to use a URL path such as "http://www.mysite.com/" instead of the local path /usr/etc could I do this? Thanks Dean

Replies are listed 'Best First'.
Re: Re: Re: Grabbing part of an HTML page
by pbeckingham (Parson) on Mar 29, 2004 at 00:16 UTC

    kingdean, I updated my code to include my @files..., and it works on my test files. That's what I get for adding in use strict at the last moment, and not using it from the start, as we all should!

    Perhaps you could show us your test files?

    If you use a URL instead of a local path, it will not work - the open function does not get web pages. You would use LWP::Simple or similar to read the page for you, but that is something you can easily find elsewhere on this site.