in reply to Re: Comparison result capture???
in thread Comparison result capture???

Didn't you mean
my $x; ($x = $a_parts[$_] <=> $b_parts[$_]) && return $x for 0 .. $#a_parts;
You're using $_ too many times.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Re: Comparison result capture???
by chip (Curate) on May 14, 2003 at 20:44 UTC
    I'll grant you that my code uses $_ with more than one meaning, and some people may not like that. But it's clear enough to me. Seems to work, too.

        -- Chip Salzenberg, Free-Floating Agent of Chaos