laziness, impatience, and hubris | |
PerlMonks |
Re: Music: Calculate Chord Progression Triadsby johngg (Canon) |
on Jan 26, 2007 at 23:27 UTC ( [id://596801]=note: print w/replies, xml ) | Need Help?? |
Sadly, I never took up a musical instrument, something I now regret very much. I wonder if it is too late to do so now that I am in my fifties. Moving back to Perl, I would just like to bring the qw{ ... } construct to your attention, which could save you some typing when setting up your arrays. Instead of
you could do
And one slight niggle. You use meaningful variable names throughout your script except for the my $i = shift;. It seems a shame to make this omission when the rest of the script is so very clear. I hope this is of interest. Cheers, JohnGG
In Section
Cool Uses for Perl
|
|