[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Complex sort(?)



At 5:26 PM -0400 9/3/99, Ronald J Kimball wrote:
>On Fri, Sep 03, 1999 at 02:22:19PM -0700, Bruce Van Allen wrote:
>> Except, of course, that one otherwise very useful example in the
>> first referenced site appears to have an extra left parenthesis:

[snip]
                   map  { [ $_, uc((/\d+\s*(\S+)/ )[0] ] } @data;
>>                                 ^
>>                               oops!
>>
>
>Nope, it's a missing right parenthesis.
>
>                 map  { [ $_, uc((/\d+\s*(\S+)/ )[0] ] } @data;
>                                                    ^
>                                                  oops!
>

Yes. Your (internal) pattern detector is more advanced than mine, 
which dumped out at finding the error, rather than also identifying 
the intent.

The next question is, who tells Tom C.?  :-)
- Bruce

_Bruce_Van_Allen___bva@cruzio.com__831_429_1688_V_
_PO_Box_839__Santa_Cruz_CA__95061__831_426_2474_W_

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org