![]() |
|
more useful options | |
PerlMonks |
Re: Don't print on the last loopby jeffa (Bishop) |
on Jun 13, 2005 at 14:14 UTC ( [id://466170]=note: print w/replies, xml ) | Need Help?? |
If the code is not terribly complex, you can always use join. If it is, consider pulling out the last element (with pop) and saving it for after the loop. You will most likely want to encapsulate the body of the loop into a subroutine. Something like this:
jeffa L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In Section
Seekers of Perl Wisdom
|
|