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.
would evaluate correctly, regardless of the actual filename.defined($filename) && length($filename)
Now, if you tried just $filename as the return value, that would be problematic...
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
---|
In Section
Meditations