in reply to Absolute pathnames from relative?
I've used it with HTML::LinkExtor in this way:
where the base URL is the /usr/bin one -- that will probably do what you want.@links = map { $_ = url($_, $base)->abs; } @links;
Update: I just looked at that again and I realise they're not URLs, they're file locations in your question, so it probably isn't what you want. Minus me. Unless I'm just lucky and it work?
--
Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer. M-J D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Absolute pathnames from relative?
by Hofmator (Curate) on Jan 22, 2003 at 11:00 UTC |