Just another Perl shrine | |
PerlMonks |
Re: Creating Variables Just to Pass into Subroutine?by jeffa (Bishop) |
on Jul 21, 2015 at 21:37 UTC ( [id://1135720]=note: print w/replies, xml ) | Need Help?? |
Since your job is to refactor, i recommend using named parameters with defaults:
And then you can call like so:
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
|
|