Perl Monk, Perl Meditation | |
PerlMonks |
Re: Use a Serialized Hash... When It Might Not Exist?by choroba (Cardinal) |
on Nov 11, 2022 at 23:01 UTC ( [id://11148150]=note: print w/replies, xml ) | Need Help?? |
-1 is a true value. Use 0, "", or undef for false. In fact, why not replace
with
?
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|