needperlhelp has asked for the wisdom of the Perl Monks concerning the following question:
in my opinion the expected output is 123.567$! = 1; @l_test = (1,2,3,4,5,6,7); foreach $l_rec (@l_test) { next,print '.' if ( 4 == $l_rec); print $l_rec; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: understanding next
by GrandFather (Saint) on Jan 31, 2008 at 04:36 UTC | |
|
Re: understanding next
by ysth (Canon) on Jan 31, 2008 at 04:52 UTC | |
|
Re: understanding next
by wfsp (Abbot) on Jan 31, 2008 at 07:39 UTC | |
by ruzam (Curate) on Jan 31, 2008 at 13:53 UTC |