![]() |
|
"be consistent" | |
PerlMonks |
Re: Don't print on the last loopby mrborisguy (Hermit) |
on Jun 13, 2005 at 14:15 UTC ( [id://466171]=note: print w/replies, xml ) | Need Help?? |
Another way that still uses print statements (probably less memory than storing as an array or string), would be to set up a counter initially, then print a comma at the beginning of the loop as long as the counter isn't 0.
-Bryan
In Section
Seekers of Perl Wisdom
|
|