Text::Template::Simple::Tokenizer - Tokenizer
use strict; use constant TYPE => 0; use constant DATA => 1; use Text::Template::Simple::Tokenize; my $t = Text::Template::Simple::Tokenize->new( $start_delim, $end_delim ); my $tokens = $t->tokenize( $raw_data ); foreach my $token ( @{ $tokens } ) { printf "Token type: %s\n", $token->[TYPE]; printf "Token data: %s\n", $token->[DATA]; }
This document describes version 0.79_09 of Text::Template::Simple::Tokenizer released on 7 August 2009.
0.79_09
Text::Template::Simple::Tokenizer
7 August 2009
WARNING: This version of the module is part of a developer (beta) release of the distribution and it is not suitable for production use.
Tokenizes the input with the defined delimiter pair.
The object constructor. Accepts two parameters in this order: start_delimiter and end_delimiter.
start_delimiter
end_delimiter
Tokenizes the input with the supplied delimiter pair. Accepts a single parameter: the raw template string.
Escapes the tilde character.
Escapes double quotes.
Burak Gursoy <burak@cpan.org>.
Copyright 2004 - 2009 Burak Gursoy. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
To install Text::Template::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Template::Simple
CPAN shell
perl -MCPAN -e shell install Text::Template::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.