On May 29, Jie Meng said:
>I am a newbie. Would you please tell me how to delete an element in an
>Array?
The delete() function works on arrays (in Perl 5.6), but it doesn't remove
the element (unless it occurs at the end of the array).
You want to use the splice() function.
splice @array, $index, 1; # removes the $index'th element
Please read 'perldoc -f splice' at your command-line, or go to
http://www.perldoc.org/.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
Are you a Monk? http://www.perlmonks.com/ http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc. http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter. Brother #734
** I need a publisher for my book "Learning Perl's Regular Expressions" **