Re: RFC 23 (v6) Higher order functions

[email protected] (John Tobey) Mon, 25 Sep 2000 20:27:07 -0400 (EDT)
Newsgroups perl.perl6.language.subs
Message-ID <[email protected]>
> That is, the expression:
> 
>         $check = ^_ == ^_**2 *^_ or die ^_;

Shouldn't that be

       $check = (^_ == ^_**2 *^_ or die ^_);

due to precedence of = over "or"?

> is equivalent to:
> 
>         $check = sub (;$$$$) {
>             $_[0] == $_[1]**2 *$_[2] or die $_[3]
>         };

-- 
John Tobey, late nite hacker <[email protected]>
\\\                                                               ///
]]]             With enough bugs, all eyes are shallow.           [[[
///                                                               \\\