![]() |
|
Think about Loose Coupling | |
PerlMonks |
(jeffa) Re: Setting default values in getoptsby jeffa (Bishop) |
on Mar 27, 2002 at 15:01 UTC ( #154682=note: print w/replies, xml ) | Need Help?? |
You can't redeclare a variable with my as you are doing.
In fact, the better way to declare %opt is with use vars,
like so:
Good luck! 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
|
|