|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Answer: How to deal with undefined returned variables. |
| ( #729121=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > subroutines > How to deal with undefined returned variables. contributed by Boldra
Russ mentioned that the // operator is in Perl 6, but in fact it is available in Perl 5.10:
This only puts 'sha1' in your config value if your $cfg->val returns undef or nothing. Definitely a valuable addition to the language.
|
|
||||||||||||||||||