Hi,
foreach (@browser)
{
if ($_ eq "IE") {splice(@browser, $i, 1);} $i++;Kids, don't do that at home ...
Zitat aus <http://perldoc.perl.org/perlsyn.html#Foreach-Loops@Perldoc zu foreach>
If any part of LIST is an array, foreach will get very confused if you add or remove elements within the loop body, for example with splice. So don't do that.
Okay, was ist also die Alternative?
Temporäres array mit push füllen und nach der Schleife dem orginalen zuweisen?