2010-01-26から1日間の記事一覧

The difference of "return;" and "return undef;"

"Perl Best Practices" recommends to use "return;"*1 to return nothing, but it might be wrong in some cases. If you use this idiom for those functions which are expected to return a scalar value, e.g. searching functions, the user of those …