in reply to Re: Re: Optimizing a string processing sub
in thread Optimizing a string processing sub
So, by forcing list context, I get the list of things matched. Then, by converting the list to scalar context, I get the number of things in the list.
I'm sure there's a more elegant way than creating two array references on the fly, but that's what I had in 60sec of imperfect memory.
------
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re3: Optimizing a string processing sub
by sauoq (Abbot) on Jan 08, 2003 at 21:27 UTC | |
|
Re: Re3: Optimizing a string processing sub
by chromatic (Archbishop) on Jan 08, 2003 at 22:02 UTC | |
|
Re: Re3: Optimizing a string processing sub
by MarkM (Curate) on Jan 08, 2003 at 22:04 UTC |