in reply to Turn relative url's to absolute with URI

You're assigning to the wrong variable. Change
foreach (@links) { $uri = URI->new_abs( $_, $base_url ) }
to
foreach (@links) { $_ = URI->new_abs( $_, $base_url ) }</p