delete works on is intended for a hash, not an array.
If you just want to filter out certain elements of an array, use grep or splice:
my $file = "test_html"; my @file_lkp = ("file1", "file2"); @file_lkp = grep {$_ ne $file} @file_lkp;
In reply to Re: Perl array delete
by wind
in thread Perl array delete
by anu_1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |