URI::pack - Support of the pack scheme in URI.


URI-pack documentation  | view source Contained in the URI-pack distribution.

Index


NAME

Top

URI::pack - Support of the pack scheme in URI.

VERSION

Top

This documnetation refers to URI::pack version 0.002

SYNOPSIS

Top

  use URI;

  # New absolute pack URI
  my $pack_uri = URI->new('pack://application,,,/ResourceFile.xaml');

  # New relative pack URI
  my $rel_pack_uri = URI->new('/images/logo.png', 'pack');

DESCRIPTION

Top

Currently the main module, URI::pack has not been completed and there is no documentation.

ATTRIBUTES

Top

This object provides multiple attributes. Calling the attribute as a method with no arguments will return the value of the attribute. Calling the attribute with one argument will set the value of the attribute to be that value and returns the old value.

  # Get the value of an attribute
  my $package = $uri->package_uri;

  # Set the value of an attribute
  my $old_package = $uri->package_uri($package);

package_uri

This is the URI of the package.

part_name

This is the part name in the pack URI. If there is no part name, then undef is returned.

part_name_segments

This is an array of the segments in the part name. A part name of /hello/world/doc.xml has three segments: hello, world, doc.xml.

METHODS

Top

clear_package_uri

This will clear the package_uri attribute.

clear_part_name

This will clear the part_name attribute.

has_package_uri

This will return a Boolean of the presence of a package_uri in the pack URI.

has_part_name

This will return a Boolean of the presence of a part_name in the pack URI.

DEPENDENCIES

Top

* Carp
* URI
* URI::Escape
* namespace::clean

SEE ALSO

Top

* URI the the base class, so you may want to look at the methods that are provided.

AUTHOR

Top

Douglas Christopher Wilson, <doug at somethingdoug.com>

BUGS AND LIMITATIONS

Top

Please report any bugs or feature requests to bug-uri-pack at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=URI-pack. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

I highly encourage the submission of bugs and enhancements to my modules.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

  perldoc URI::pack

You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=URI-pack

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/URI-pack

* CPAN Ratings

http://cpanratings.perl.org/d/URI-pack

* Search CPAN

http://search.cpan.org/dist/URI-pack/

LICENSE AND COPYRIGHT

Top


URI-pack documentation  | view source Contained in the URI-pack distribution.