Regular expression – what is the fastest way to determine the full URL from a relative URL (given basic URL)

I am currently using the module URI::URL to generate a complete URL from a relative URL; however, it does not run as fast as I hoped. Does anyone know of another approach possible Will be faster?
The following code should work.

$uri = URI->new_abs( $str, $base_uri )

You should also take a look at the URI page on search.cpan.org.

I The module URI::URL is currently being used to generate a complete URL from a relative URL; however, it does not run as fast as I hoped. Does anyone know of another method that might be faster?

The following code should work.

$uri = URI->new_abs( $str, $base_uri) 

You should also take a look at the URI page on search.cpan.org.

Leave a Comment

Your email address will not be published.