URI::WithBase - URI which remember their base
$u1 = URI::WithBase->new($str, $base); $u2 = $u1->abs; $base = $u1->base; $u1->base( $new_base )
This module provide the URI::WithBase class. Objects of this class are like URI objects, but can keep their base too.
URI::WithBase
URI
The methods provided in addition to or modified from those of URI are:
The constructor takes a an optional base URI as the second argument.
This method can be used to get or set the value of the base attribute.
The $base_uri argument is now made optional as the object carries it's base with it.
Copyright 1998 Gisle Aas.
To install URI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm URI
CPAN shell
perl -MCPAN -e shell install URI
For more information on module installation, please visit the detailed CPAN module installation guide.