|
NAMEText::Template::Simple::TokenizerVERSIONversion 0.91SYNOPSISuse strict; use warnings; use Text::Template::Simple::Constants qw( :token ); use Text::Template::Simple::Tokenizer; my $t = Text::Template::Simple::Tokenizer->new( $start_delim, $end_delim ); foreach my $token ( @{ $t->tokenize( $raw_data ) } ) { printf "Token type: %s\n", $token->[TOKEN_ID]; printf "Token data: %s\n", $token->[TOKEN_STR]; } DESCRIPTIONSplits the input into tokens with the defined delimiter pair.NAMEText::Template::Simple::Tokenizer - "Tokenizer"METHODSnewThe object constructor. Accepts two parameters in this order: "start_delimiter" and "end_delimiter"."tokenize"Splits the input into tokens with the supplied delimiter pair. Accepts a single parameter: the raw template string.ESCAPE METHODStildeEscapes the tilde character.quote Escapes double quotes. AUTHORBurak Gursoy <burak@cpan.org>COPYRIGHT AND LICENSEThis software is copyright (c) 2004 by Burak Gursoy.This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Visit the GSP FreeBSD Man Page Interface. |