in reply to Undesired array growth
It sure is unclear what you're trying to do here, and I have to believe there's got to be a better way to do it.
But I've identified a bug which may be responsible at least in part for whatever problem you're seeing. You're missing a backwhack in front of the array in the third call to del(), at line 25 of the posted code. That is,
should bedel(@{$meta[$page+1]},0);
Of course, it could really be simplydel(\@{$meta[$page+1]},0);
Couldn't it? Otherwise, it looks like your sub del is attempting to re-implement the splice built-in function.shift @{$meta[$page+1]};
Good luck!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Undesired array growth
by jwkrahn (Abbot) on Jan 09, 2009 at 03:11 UTC | |
by apok (Acolyte) on Jan 09, 2009 at 04:12 UTC | |
by jdporter (Paladin) on Jan 09, 2009 at 03:20 UTC | |
|
Re^2: Undesired array growth
by apok (Acolyte) on Jan 09, 2009 at 04:06 UTC |