more useful options | |
PerlMonks |
How do I find the position of an element in an array?by lrenigu (Initiate) |
on Sep 21, 2001 at 21:52 UTC ( [id://113951]=perlquestion: print w/replies, xml ) | Need Help?? |
lrenigu has asked for the wisdom of the Perl Monks concerning the following question:
I wrote a program where I grep for the element from an unknown array (the array keeps incrementing) and want to remove the grepped element. I know I can use splice to remove the element from an array but I need the position of the element to set the OFFSET. Please help.
Back to
Seekers of Perl Wisdom
|
|