
mhx
Enthusiast
/ Moderator
Jun 7, 2001, 12:11 PM
Post #2 of 4
(1395 views)
|
delete is for hash tables, not for arrays. To delete elements from an array, use the splice function:
my $idx = 5; my @ary = (0,1,2,3,4,5,6,7,8,9); splice @ary, $idx, 1; # now, @ary is (0,1,2,3,4,6,7,8,9) -- Marcus
|