hak0983 has asked for the wisdom of the Perl Monks concerning the following question:
#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"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Entry Get line start problem!
by zentara (Cardinal) on Mar 28, 2005 at 20:26 UTC |