develooper Front page | perl.perl5.porters | Postings from January 2012

Re: [perl #109146] 3-arg open of undef for read

From:
Zefram
Date:
January 27, 2012 03:30
Subject:
Re: [perl #109146] 3-arg open of undef for read
Message ID:
20120127113041.GA20243@lake.fysh.org
Nicholas Clark wrote:
>I think that a comprehensive fix should be possible. Note that XS can tell
>the difference:

Better to distinguish at compile time.  Literal "undef" is a different
opcode from "$undefined" or "$hash{typoed_key}".

-zefram



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About