in reply to Removing an element from an array

You might also be looking for splice. shift and pop (and their friends unshift and push) can be implemented in terms of splice (though they aren't actually implemented as such in the Perl source code).

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose