http://www.perlmonks.org?node_id=194269


in reply to Re: Re: Re: Isn't that nice?
in thread Isn't that nice?

Probably more like:
my &half := &divide.assuming( $y => 2 )
But that's the general idea.

Larry

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Isn't that nice?
by BrowserUk (Patriarch) on Aug 31, 2002 at 02:38 UTC

    Apart from being substantially prettier, is this functionally or efficiently different from

    my $half = sub { $_[1]=2; goto ÷ }; print $half->( 120 ),$/; __END__ 60
    ?
    Well It's better than the Abottoire, but Yorkshire!