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.."
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]); }
Back to
Seekers of Perl Wisdom