Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 scrutinizing the Monastery: (17)
As of 2015-07-28 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (259 votes), past polls