Data::HAL::URI - URI wrapper
This document describes Data::HAL::URI version 1.000
my $relation = $resource->relation->as_string;
This is a wrapper for URI objects.
None, but URI methods are delegated through the "uri" attribute.
new
my $u = Data::HAL::URI->new('http://example.com/something');
Takes a string argument, returns a Data::HAL::URI object.
Data::HAL::URI
uri
Type URI, required, readonly, can only be set from the "new" constructor.
URI
This attribute delegates all methods to URI except "as_string".
as_string
Returns the original argument to the constructor if still equal to the "uri", where equality also takes CURIE expansion into account, or otherwise the "uri" as string.
The unaltered behaviour is still available through the "uri" accessor, e.g.:
$resource->relation->uri->as_string
None.
Requires no configuration files or environment variables.
To install Data::HAL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::HAL
CPAN shell
perl -MCPAN -e shell install Data::HAL
For more information on module installation, please visit the detailed CPAN module installation guide.