Your code doesn't seem to do what you want it to do...
This begs for a map, as seen in this untested code:
my @newlinks = map { URI->new_abs( $_, $base_url ) } @links;
In reply to Re: Turn relative url's to absolute with URI
by herveus
in thread Turn relative url's to absolute with URI
by lampros21_7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |