First - implements a simple "first match" tokenizer
use Scanner::Stream::File; use Scanner::Scanner; use Scanner::First; $tokens = [ '[A-Za-z_][A-Za-z0-9_]*', sub { print "$_[1] "; } ]; # Print all the identifiers in blah.txt $scanner = new Scanner::First($tokens, new Scanner::Stream::File "blah.txt");
To install Parser::Table, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parser::Table
CPAN shell
perl -MCPAN -e shell install Parser::Table
For more information on module installation, please visit the detailed CPAN module installation guide.