URI::pack - Support of the pack scheme in URI.
This documnetation refers to URI::pack version 0.001
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');
Currently the main module, URI::pack has not been completed and there is no documentation.
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);
This is the URI of the package.
This is the part name in the pack URI. If there is no part name, then undef is returned.
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.
/hello/world/doc.xml
hello
world
doc.xml
This will clear the "package_uri" attribute.
This will clear the "part_name" attribute.
This will return a Boolean of the presence of a "package_uri" in the pack URI.
This will return a Boolean of the presence of a "part_name" in the pack URI.
URI
URI::Escape
namespace::clean
URI the the base class, so you may want to look at the methods that are provided.
Douglas Christopher Wilson, <doug at somethingdoug.com>
<doug at somethingdoug.com>
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.
bug-uri-pack at rt.cpan.org
I highly encourage the submission of bugs and enhancements to my modules.
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/
Copyright 2009 Douglas Christopher Wilson.
This program is free software; you can redistribute it and/or modify it under the terms of either:
the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or
the Artistic License version 2.0.
To install URI::pack, copy and paste the appropriate command in to your terminal.
cpanm
cpanm URI::pack
CPAN shell
perl -MCPAN -e shell install URI::pack
For more information on module installation, please visit the detailed CPAN module installation guide.