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.