Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: How to grab Parse::RecDescent error output in a variable?

by tfrayner (Curate)
on Sep 15, 2008 at 13:09 UTC ( #711452=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        open( *Parse::RecDescent::ERROR, '>', \(my $parse_error) )
        or croak("Error: unable to redirect SDTERR.");
    ...
    
        my $parser = Parse::RecDescent->new($grammar) or die("Bad grammar!
    +");
    
  2. or download this
    use strict;
    
    ...
    }
    
    print parse('start: /foo/ | <error>', 'fo'), "\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://711452]
help
Chatterbox?
[mark4]: Did activestate use to inclued teh perl packager, pp.exe in the standard distribution? I can't fine "pp.exe" anywhare.
[marto]: no

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (14)
As of 2018-01-19 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (218 votes). Check out past polls.

    Notices?