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

Re: EVAL?

Thread Previous | Thread Next
From:
The Sidhekin
Date:
June 14, 2018 16:19
Subject:
Re: EVAL?
Message ID:
CAHAeAG5eK3uJ4R2_juPYYbBWNnAAxZiVtFobAb0KUpJRrVJ2aA@mail.gmail.com
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?


Eirik

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