- SEE ALSO
- BUGS AND LIMITATIONS
- LICENSE AND COPYRIGHT
URI::pack - Support of the pack scheme in URI.
This documentation refers to version 0.002001.
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');
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:
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 the the base class, so you may want to look at the methods that are provided.
Douglas Christopher Wilson,
<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.
I highly encourage the submission of bugs and enhancements to my modules.
You can find documentation for this module with the
You can also look for information at:
RT: CPAN's request tracker
Copyright 2011 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.