On 09/12/2016 06:48 PM, Aaron Wells wrote:
@Jim,

That eval bit i think Nathalie got from me. I need to review my core Perl. I think i’m in the habit of assuming Perl warns against any usage of undefined values, even in boolean context. Not so. I’ve proven to myself that this is not the case:



BLOCK eval doesn't trap warnings - it only traps die calls or fatal things.

as for no warnings on undef, it makes sense to allow undef as a boolean. there are other cases too where undef is not warned. using ++ on an undef is quiet (but not +=) as counting with ++ is too common and forcing the scalar to 0 first would be annoying.

uri

Reply via email to