"Oleg V. Volkov" schreef:

> Is there a way to do something to effect of:
> our ${$varname};
> 
> I'm using a simple Getopt::* / Alias::attr like function to parse
> named parameters from hash and assign them to localized variables
> to save me some dereferencing inside heavy loops, but declaring
> parameters two times - first as "our" variables and then once again
> as a list for this function to check against, so it can catch
> errors in list looks kinda ineffective to me.

Maybe use Data::Alias.

Or use an array with CONSTANTs for the indexes. Consider 'use enum'.

Provide code, so we can guess better.

-- 
Affijn, Ruud

"Gewoon is een tijger."

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to