|
NAMEURI::Based - Define a base URI and then generate variations on itVERSIONVersion 1.03SYNOPSISuse URI::Based; my $uri = URI::Based->new( 'http://angel.net/~nic' ); say $uri->with( '/path/to/add', param1 => 'some value' ); say $uri->with( '/a/different/path', param2 => 'other value', param3 => 'yet another' ); # prints: # http://angel.net/~nic/path/to/add?param1=some+value # http://angel.net/~nic/a/different/path?param2=other+value¶m3=yet+another METHODSThis class inherits all the methods of URI::WithBase and URI, and addsnew()Automatically sets the base and the the URI to the same initial valuewith()Sets the URI to the base plus the path and query given, and returns the URI. The first argument is the path, the rest are parameter => value pairs, given in any format acceptable to URI::query_form().SEE ALSOURI::WithBase <http://search.cpan.org/~gaas/URI-1.60/URI/WithBase.pm>AUTHORNic Wolff, <nic@angel.net>BUGSPlease report any bugs or feature requests through the web interface at <https://github.com/nicwolff/URI-Based/issues>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.SUPPORTYou can find documentation for this module with the perldoc command.perldoc URI::Based You can also look for information at:
LICENSE AND COPYRIGHTCopyright 2012 Nic Wolff.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; or the Artistic License. See http://dev.perl.org/licenses/ for more information.
Visit the GSP FreeBSD Man Page Interface. |