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

Re: RFE: eval documentation

Thread Previous | Thread Next
From:
ToddAndMargo
Date:
June 14, 2018 18:11
Subject:
Re: RFE: eval documentation
Message ID:
ad0aae66-c925-7cac-23eb-1609a4e0c789@zoho.com
On 06/14/2018 10:31 AM, ToddAndMargo wrote:
> Dear Perl6 Developers,
> 
> https://docs.perl6.org/language/5to6-perlfunc#eval
> 
> Would you please consider adding
> 
>       ::('&' ~ $RunSpecific)()
>       &::($RunSpecific)()
> 
> to the documentation, as well as an explanation of
> the error message when using EVAL
> 
> ===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"⏏; }
> 
> Be sure to turn the "use the MONKEY-SEE-NO-EVAL pragma" phrase into
> `use MONKEY-SEE-NO-EVAL;` as the sentence is to obscure otherwise.
> 
> 
> Many thanks,
> -T


Be nice to the alternative

      ::('&' ~ $RunSpecific)()
      &::($RunSpecific)()

and why in

https://docs.perl6.org/routine/EVAL

too


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thread Previous | 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