"Tova Yaron" schreef: > Trying to remove from array blank lines, its look like splice get > confuse with the array size after removing the blank entry. > Or maybe I'm getting confuse..
When an element is removed, your loop-variable is no longer in sync. Consider grep: #!/usr/bin/perl use warnings ; use strict ; use Data::Dumper ; my @data = \split /\n/, <<EOD; 000000000000000000000000000000000 111111111111111111111111111111111 222222222222222222222222222222222 333333333333333333333333333333333 444444444444444444444444444444444 999999999999999999999999999999999 EOD my @goal = grep $$_ !~ /^$/, @data ; print Dumper [EMAIL PROTECTED] ; -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>