go ahead... be a heretic | |
PerlMonks |
Re: retrieving the absolute urlby jeffenstein (Hermit) |
on May 21, 2002 at 11:25 UTC ( [id://168084]=note: print w/replies, xml ) | Need Help?? |
First, the comments in this block say one thing, but the code says something different
You probably want to change this to: or
Otherwise, if there are other attributes in the tag (alt=, border=) then you may end up getting their values instead. Also, the abs() method to URI::URL returns a URI::URL object, so you'll need to change this line: to this:
Which will give you a string, that can be used instead. For some reason this only fails occasionally, so this may be the problem that you are running into.
In Section
Seekers of Perl Wisdom
|
|