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

Re: EVAL?

Thread Previous | Thread Next
From:
Elizabeth Mattijsen
Date:
June 14, 2018 16:35
Subject:
Re: EVAL?
Message ID:
A0245A33-380E-480A-BB81-4682622BCCA7@dijkmat.nl


> On 14 Jun 2018, at 18:19, The Sidhekin <sidhekin@gmail.com> wrote:
> 
> On Thu, Jun 14, 2018 at 6:11 PM, Timo Paulssen <timo@wakelift.de> wrote:
> If it's literally just the name of a sub that you'll immediately invoke,
> you can side-step EVAL completely
> 
>     ::('&' ~ $RunSpecific)()
> 
> should do the trick.
> 
>   I haven't been much into Perl 6 lately, but isn't this just the same as
> 
>     &::($RunSpecific)()
> 
> ... which is easier on these old eyes?

Indeed it is.

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