in reply to Re^2: Converting to boolean
in thread Converting to boolean

.. which would otherwise do the wrong thing for a filename such as "0".
Umm, perhaps I'm being too picky, but I think that was a flawed example.
defined($filename) && length($filename)
would evaluate correctly, regardless of the actual filename.

Now, if you tried just $filename as the return value, that would be problematic...

Quantum Mechanics: The dreams stuff is made of