in reply to Re: Can you help profile this?
in thread Can you help profile this?
In your line 7, did you intend for $i < @in; to be $i < $#in; ? ... or, maybe $i < ( $#in + 1 );? @in is the entire array; not a count of elements
How does someone who's been around here as long as you, miss the fact that an array reference @a in a scalar context (as provided by a comparison operator), renders the number of elements in the array. Ie. exactly the same number as $#a + 1?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Can you help profile this?
by ww (Archbishop) on Dec 08, 2011 at 22:39 UTC |