![]() |
|
XP is just a number | |
PerlMonks |
Re^3: Process Text File and Write to Databaseby Blackavar (Initiate) |
on Nov 20, 2009 at 20:04 UTC ( [id://808516]=note: print w/replies, xml ) | Need Help?? |
It looks like I don't understand the use of 'next' in this context,Yes. 'next' means "exit the block I'm in now, and skip anything (other than a continue block) afterwards." Every time you called 'next', your program skipped directly to the next iteration of the loop without going any further - in your original program, that's why only the parts of the loop were being executed.
In Section
Seekers of Perl Wisdom
|
|