|Do you know where your variables are?|
Re: sub argument passing? (TIMTOWTDI)by temporal (Pilgrim)
|on Sep 13, 2012 at 21:47 UTC||Need Help??|
Thanks guys, great suggestions, +1
Spent some time looking at Params::Check - seems perfect for what I want.
Aside from the fact that I'll have to define templates for all my subs, but I'm sure that I can come up with some way to dynamically create templates. Even still, it's easier than handwriting the logic myself.
On a related note, I was trying to sort using different comparison code blocks which are passed as args (within the hashref model above) to subs:
Took a bit of tinkering to figure out how all that needed to be written to work properly so I thought it might be helpful to somebody if I posted it up here as well.
Thanks again, brothers.
Strange things are afoot at the Circle-K.