On 22 May 2002 at 13:10, Luke Palmer wrote:

> Since this is a Perl 6 list, here's how you would do it in Perl 6 (unless 
> there's a better way):
> 
> sub myint($x) { my $i = int $x; $i == $x ? $x : $i }

Shouldn't that be

sub myint($x) { my $i = int $x; $i == $x ?? $x :: $i }

as ?: operator is changed in Perl6.

-- 
Markus Laire 'malaire' <[EMAIL PROTECTED]>



Reply via email to