For your specific issue, two solutions are

1.) Add "use English qw( -no_match_vars );" to your Perl script.  Make sure
to use the form I just quoted, in order to avoid an efficiency issue.

2.) Translate all the "Englished" vars to their "Pure Perl" form.   There
is a man page <http://perldoc.perl.org/perlvar.html> with the
translations.  For example, $EVAL_ERROR translates to $@ in pure Perl.

I use the "Englished" forms in the examples, because they are supposed to
be easier to read, and "English" is a core module.

On Thu, Nov 26, 2015 at 10:00 AM, Ruslan Shvedov <[email protected]>
wrote:

>
>
> On Thu, Nov 26, 2015 at 6:51 PM, Cev Ing <[email protected]> wrote:
>
>>
>>
>> Am Donnerstag, 26. November 2015 17:12:10 UTC+1 schrieb rns:
>>>
>>>
>>> Nope, you an add use English; -- it's a long name for eval's return
>>> value.
>>>
>>
>> Ah thanks I got it. Never used the English packages.
>>
>>
>>> If you need a full runnable example, the code from
>>> https://metacpan.org/pod/distribution/Marpa-R2/pod/Scanless.pod#Synopsis
>>> will serve you better.
>>>
>>
>> I was looking for an example with actions. The example of Scannless just
>> blesses and traverses the blessed objects.
>>
> Then, per Jeffrey's advice, you can adapt code from
> https://github.com/jeffreykegler/Marpa--R2/blob/master/cpan/t/sl_gsyn.t
>
>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "marpa parser" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "marpa parser" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"marpa parser" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to