in reply to Re^2: Checking string emptiness
in thread Checking string emptiness

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^4: Checking string emptiness
by pryrt (Abbot) on Apr 07, 2025 at 01:57 UTC
    yes, but when $string is undefined, it says...

    It's only because you are using a version older than Perl 5.12, because, as ikegami said in Re^3: Checking string emptiness, that behavior was changed in 5.12.

    If you are going to choose to use something as old as Perl 5.8, you need to understand that the results you see are not necessarily going to match those that are seen by the majority of the users, because of bugfixes and improvements over the last two decades.

    --

    edit: removed unhelpful sentence