GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
URI::Based(3) User Contributed Perl Documentation URI::Based(3)

URI::Based - Define a base URI and then generate variations on it

Version 1.03

  use 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&param3=yet+another

This class inherits all the methods of URI::WithBase and URI, and adds

Automatically sets the base and the the URI to the same initial value

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().

URI::WithBase <http://search.cpan.org/~gaas/URI-1.60/URI/WithBase.pm>

Nic Wolff, <nic@angel.net>

Please 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.

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

    perldoc URI::Based

You can also look for information at:

  • This module on GitHub

    <https://github.com/nicwolff/URI-Based>

  • GitHub request tracker (report bugs here)

    <https://github.com/nicwolff/URI-Based/issues>

  • AnnoCPAN: Annotated CPAN documentation

    <http://annocpan.org/dist/URI-Based>

  • Search CPAN

    <http://search.cpan.org/dist/URI-Based/>

Copyright 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.

2012-10-05 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.