joepepsi18 has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
this is my first week using perl, so please excuse the stupid question I am about to ask. I hope you all would be able to assist me.
I need to write a script that parses out an html file. Unfortunately, the following only works on local and dir:
for ie:
my $html='http://www.perl.com/pub/a/2000/12/begperl4.html'; open (FH, $html) or die "Cannot open file: $!"; close (FH)
I get the following error: Cannot open file: Invalid argument
Can somebody tell me how I can access the www file so that I may parse it?
thanks so much !!
20080115 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: opening html files
by davidrw (Prior) on Jan 14, 2008 at 04:21 UTC | |
Re: opening html files
by leighsharpe (Monk) on Jan 14, 2008 at 11:23 UTC | |
Re: opening html files
by fenLisesi (Priest) on Jan 14, 2008 at 11:35 UTC |