develooper Front page | perl.perl6.users | Postings from June 2018

EVAL?

Thread Next
From:
ToddAndMargo
Date:
June 13, 2018 19:21
Subject:
EVAL?
Message ID:
0eb34d10-4f6e-0dbb-9a83-253efc2efd85@zoho.com
Hi All,

I am converting a program from Perl5 to Perl 6.

This line

      else { eval "$RunSpecific"; }

became this line

      else { EVAL "$RunSpecific"; }

And threw this error

$ perl6 -c GetUpdates.pl6
===SORRY!=== Error while compiling /home/linuxutil/GetUpdates.pl6
EVAL is a very dangerous function!!! (use the MONKEY-SEE-NO-EVAL pragma 
to override this error,
but only if you're VERY sure your data contains no injection attacks)
at /home/linuxutil/GetUpdates.pl6:6016
------> else { EVAL "$RunSpecific"⏏; }


Any words of wisdom?


Many thanks,
-T


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Serious error.
All shortcuts have disappeared.
Screen. Mind. Both are blank.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About