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::Template(3) User Contributed Perl Documentation URI::Template(3)

URI::Template - Object for handling URI templates (RFC 6570)

    use URI::Template;
   
    my $template = URI::Template->new( 'http://example.com/{x}' );
    my $uri      = $template->process( x => 'y' );
    
    # or
    
    my $template = URI::Template->new();
    $template->template( 'http://example.com/{x}' );
    my $uri      = $template->process( x => 'y' );
    
    # uri is a URI object with value 'http://example.com/y'

or

    use URI::Template ':template_process'
    
    my $uri = template_process ( 'http://example.com/{x}', x => 'y' );

This module provides a wrapper around URI templates as described in RFC 6570: <http://tools.ietf.org/html/rfc6570>.

    perl Makefile.PL
    make
    make test
    make install

Creates a new URI::Template instance with the template passed in as the first parameter (optional).

This method returns the original template string. If provided, it will also set and parse a new template string.

Returns an array of unique variable names found in the template (in the order of appearance).

This method returns an list of expansions found in the template. Currently, these are just coderefs. In the future, they will be more interesting.

Given a list of key-value pairs or an array ref of values (for positional substitution), it will URI escape the values and substitute them in to the template. Returns a URI object.

Processes input like the "process" method, but doesn't inflate the result to a URI object.

This is the same as "URI::Template->new($template)->process(\%vars)" But shorter, and usefull for quick and easy genrating a nice URI form parameters.

Returns an URI object

Same as above, but obviously, returns a string.

  • Brian Cassidy <bricas@cpan.org>
  • Ricardo SIGNES <rjbs@cpan.org>

Theo van Hoesel <Th.J.v.Hoesel@THEMA-MEDIA.nl>

Copyright 2007-2018 by Brian Cassidy

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Hey! The above document had some coding errors, which are explained below:
Around line 470:
You forgot a '=back' before '=head1'
2018-09-20 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.