in reply to Re^4: Conditional initialization of my-variables
in thread Conditional initialization of my-variables

When dealing with empty strings, I'd rather check length

Edit

DB<13> p "false" unless "0" false DB<14> p "false" unless 0 false DB<15> p "false" unless length "0" DB<16> p "false" unless length undef false DB<17> use warnings; length undef DB<18> p "false" unless length "" false DB<19>

Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^6: Conditional initialization of my-variables
by kcott (Archbishop) on Apr 08, 2023 at 19:49 UTC