|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: Don't print on the last loopby jdhedden (Deacon) |
| on Jun 13, 2005 at 10:13 UTC ( [id://466169]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
The easiest way is to move the comma printing to the front of the loop, and add a flag to control printing it:
Remember: There's always one more bug.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||