Text::Placeholder::Group::URI - symbolic access to parts of an URI
use Text::Placeholder; my $placeholder = Text::Placeholder->new( my $uri = '::URI'); $placeholder->compile('Host: [=uri_host=]'); $uri->subject('http://www.perl.org/'); print ${$placeholder->execute()}, "<-\n";
A proof-of-concept module.
Text::Placeholder::Group::URI provides the placeholders 'uri_(scheme|opaque|host|path|full)'.
Sets or gets the string representation of the URI.
Adds the $code_ref under the name of $placeholder. $code_ref is executed and returns the current value to be substituted for $placeholder.
This is the first public release.
Winfried Trumper <pub+perl(a)wt.tuxomania.net>
Copyright (C) 2011 Winfried Trumper
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Text::Placeholder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Placeholder
CPAN shell
perl -MCPAN -e shell install Text::Placeholder
For more information on module installation, please visit the detailed CPAN module installation guide.