good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: open undefby morgon (Priest) |
on Aug 02, 2018 at 20:18 UTC ( [id://1219727]=note: print w/replies, xml ) | Need Help?? |
I am not really sure if I understand what you are trying to say (but it is very interesting) - so thanks for that. For me I am trying to figure out why perl handles the cases differently. My position is that what happens in the first case is the proper thing to do. You want to open a file for reading and you supply undef as a file-name: Error. That's how I think it should be. And I still cannot quite see why the cases supplied should be different. And there is this: Both have the same high refcount, but the addresses seem to differ - why is that? Is this a can of worms that one should not open?
In Section
Seekers of Perl Wisdom
|
|