Hi, Was an issue somewhere else in my code. Been using an $counter to keep track of the records and I executed next without incrementing the counter.
Sorry guys :) On Sun, Mar 3, 2013 at 11:43 AM, <sisyph...@optusnet.com.au> wrote: > > > -----Original Message----- From: Chris Knipe > >> my @array = (1..10); >> foreach my $number (@array) { >> next if $number == 5; >> print $number; >> } >> > > I can't reproduce the problem. > Works as expected for me, and outputs: > 1234678910 > > Cheers, > Rob > -- Regards, Chris Knipe