"delete argument is not a HASH element or slice at test.pl.."
It is working in Linux but not in Solaris Thanks for your helpmy $file="test_html"; my @file_lkp=("file1","file2"); for (my $i=0;$i<=$#file_lkp;$i++) { delete $file_lkp[$i] if ($file eq $file_lkp[$i]); }
In reply to Perl array delete by anu_1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |