in reply to How to deal with undefined returned variables.
This only puts 'sha1' in your config value if your $cfg->val returns undef or nothing.use 5.010; $CONFIG{HASHTYPE} = $cfg->val("MISC","HASHTYPE") // 'sha1';
Definitely a valuable addition to the language.
|
|---|