Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by w-ber (Hermit)
on Sep 15, 2008 at 08:07 UTC ( #711402=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    ...
    }
    
    print parse('start: /foo/ | <error>', 'fo'), "\n";
    
  2. or download this
    $ perl rectest.pl
            ERROR (line 1): Invalid start: Was expecting /foo/
    
  3. or download this
    $ perl rectest2.pl
    
           ERROR (line 1): Invalid start: Was expecting /foo/
    Died at recdescent.pl line 34.
    
  4. or download this
    use strict;
    
    ...
    }
    
    print parse('start: /foo/ | <error>', 'fo'), "\n";
    
  5. or download this
    $ perl recdescent3.pl 
    Undefined format "Parse::RecDescent::ERROR" called at /usr/share/perl5
    +/Parse/RecDescent.pm line 2910.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://711402]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2014-11-29 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (203 votes), past polls