cgraf has asked for the wisdom of the Perl Monks concerning the following question:
use Parse::Lex; my $lexer = Parse::Lex->new (qw( SC ESC7 BOLD \[0;1m )); my $buffer = 'ESC7ESC[002;002HESC[0;1m . ESC[0;1mESC8ESC7ESC[002;01 +0HESC[0;1m . ESC[0;1mESC8ESC7ESC[003;002HESC[0;1;5m ESC[0;1mE +SC8'; $lexer->from($buffer); $lexer->every (sub { print $_[0]->name, "\t"; print $_[0]->text, "\n"; });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parse::Lex error message
by gothic_mallard (Pilgrim) on Jan 27, 2004 at 15:50 UTC | |
by cgraf (Beadle) on Jan 27, 2004 at 16:53 UTC | |
|
Re: Parse::Lex error message
by Theo (Priest) on Jan 27, 2004 at 15:33 UTC | |
by Anonymous Monk on Jan 27, 2004 at 16:49 UTC | |
by Anonymous Monk on Jan 27, 2004 at 22:35 UTC |