http://qs321.pair.com?node_id=897663

anu_1 has asked for the wisdom of the Perl Monks concerning the following question:

I am getting following error when trying to delete an array element.

"delete argument is not a HASH element or slice at test.pl.."

my $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]); }
It is working in Linux but not in Solaris Thanks for your help