* Zefram <zefram@fysh.org> [2012-01-27 12:35]: > 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}". Does that mean that a wrapper for `open` would have to do this in order to provide an undef op? defined $name ? $name : undef Ugh. Or would even that not work because that’s an expression more complex than a plain `undef`? Ugh. Please, no. -- *AUTOLOAD=*_;sub _{s/$/$"/;s/(.*):://;wantarray//substr$_,-1,1,",$/";print;$1} &Just->another->Perl->hack; #Aristotle Pagaltzis // <http://plasmasturm.org/>