develooper Front page | perl.perl5.porters | Postings from October 2015

Re: smartmatch needs your eyes

Thread Previous | Thread Next
Eric Brine
October 6, 2015 18:47
Re: smartmatch needs your eyes
Message ID:
On Tue, Oct 6, 2015 at 12:03 PM, Dave Mitchell <> wrote:

> If so, how does one write something functionally equivalent to when(1)
> now?

You need a helper that returns an object that overrides smartmatch.

when (num(1))

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About