Manpages

Manpage of URI::WithBase

URI::WithBase

Section: User Contributed Perl Documentation (3)
Updated: 2001-08-24
Index
Return to Main Contents
 

NAME

URI::WithBase - URI which remember their base  

SYNOPSIS

 $u1 = URI::WithBase->new($str, $base);
 $u2 = $u1->abs;


 $base = $u1->base;
 $u1->base( $new_base )


 

DESCRIPTION

This module provide the "URI::WithBase" class. Objects of this class are like "URI" objects, but can keep their base too.

The methods provided in addition to or modified from those of "URI" are:

$uri = URI::WithBase->new($str, [$base])
The constructor takes a an optional base URI as the second argument.
$uri->base( [$new_base] )
This method can be used to get or set the value of the base attribute.
$uri->abs( [$base_uri] )
The $base_uri argument is now made optional as the object carries it's base with it.
$uri->rel( [$base_uri] )
The $base_uri argument is now made optional as the object carries it's base with it.
 

SEE ALSO

URI  

COPYRIGHT

Copyright 1998-2000 Gisle Aas.


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
COPYRIGHT

This document was created by man2html, using the manual pages.
Time: 02:29:08 GMT, April 27, 2024