EVAL?

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
=3D=3D=3DSORRY!=3D=3D=3D Error while compiling /home/linuxutil/GetUpdates=
=2Epl6
EVAL is a very dangerous function!!! (use the MONKEY-SEE-NO-EVAL pragma=20
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"=E2=8F=8F; }


Any words of wisdom?


Many thanks,
-T


--=20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Serious error.
All shortcuts have disappeared.
Screen. Mind. Both are blank.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0
ToddAndMargo
6/13/2018 7:21:42 PM
perl.perl6.users 1084 articles. 0 followers. Follow

0 Replies
62 Views

Similar Articles

[PageSpeed] 24

Reply: