i think this would be better , if you want to make b's value to be default ..
use constant SOMENAME ( a => 10, b=> 'DEFAULT');
The rest is yours.. the code you've given will work fine..
In reply to Re: Class::MethodMaker initialization of default values
by vishi83
in thread Class::MethodMaker initialization of default values
by justanyone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |