Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks
Im a novice.
can i delete an element from array just by mentioning the element value.
For example,
@a=('a','b','c','a','b');
in the above array can i delete the first 'a' present in that array. the resultant array should be
@a=('b','c','a','b');
how can i do this?
Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array element deletion
by Roger (Parson) on May 04, 2004 at 13:17 UTC | |
by diotalevi (Canon) on May 04, 2004 at 14:34 UTC | |
by revdiablo (Prior) on May 04, 2004 at 18:33 UTC | |
by bart (Canon) on May 04, 2004 at 16:21 UTC | |
|
Re: Array element deletion
by matija (Priest) on May 04, 2004 at 13:29 UTC | |
|
Re: Array element deletion
by pelagic (Priest) on May 04, 2004 at 13:18 UTC | |
|
Re: Array element deletion
by perlinux (Deacon) on May 04, 2004 at 13:22 UTC | |
by halley (Prior) on May 04, 2004 at 13:36 UTC | |
by ysth (Canon) on May 04, 2004 at 17:19 UTC |