"be consistent" | |
PerlMonks |
Re: oracle connectionby Eliya (Vicar) |
on Jun 01, 2012 at 18:00 UTC ( [id://973828]=note: print w/replies, xml ) | Need Help?? |
You could put them in a hash. For example, pass the names to the routine (e.g. proc( [qw(foo bar)] )), and then say in the routine
(The @v{...} is a hash slice, which means you can assign multiple entries in one go.) You can then access the "variables" as $v{foo} and $v{bar}.
In Section
Seekers of Perl Wisdom
|
|