in reply to Comparison result capture???
As for the "last result" idea, foreach (which is spelled "for" by all good monks) will often serve the purpose of avoiding duplicate expressions:
$_ and return $_ for $a_parts[$_] <=> $b_parts[$_];
I've also run into odd restrictions on no strict and I really wish I understood what was broken by accident and what on purpose WRT that.
Finally, I'll take off a fractional style point for using a map block where you really meant foreach....
-- Chip Salzenberg, Free-Floating Agent of Chaos
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comparison result capture???
by boo_radley (Parson) on May 14, 2003 at 17:10 UTC | |
by chip (Curate) on May 14, 2003 at 20:41 UTC | |
|
Re: Re: Comparison result capture???
by dragonchild (Archbishop) on May 14, 2003 at 16:58 UTC | |
by chip (Curate) on May 14, 2003 at 20:44 UTC | |
|
Re: Re: Comparison result capture???
by shemp (Deacon) on May 14, 2003 at 18:00 UTC |