#TextAreA my $mw1= $mw->Scrolled("Text")->pack(); #line entry my $mw2= $mw->Scrolled("Entry", -text=>"Start at line" -command => [ \&parser8, $mw1 ]) ->pack(-side=>'bottom'); my $grammar = q { start: open text close open: "/*" text: /[\w|\s|\d]+/ close: "*/" }; my $parser = Parse::RecDescent->new($grammar); if ( defined( $parser->start( $text1->get( "1.0", "$mw2")))) { print "NO ERROR\n"; } else { print "ERROR\n"; } }
In reply to Entry Get line start problem! by hak0983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |