perl
perl の if とか defined とかの動作をまとめてみました。 + if if defined print Dumper $test; × × $VAR1 = undef; $test = undef; × × $VAR1 = undef; $test = ''; × ○ $VAR1 = ''; $test = 0; × ○ $VAR1 = 0; $test = (); × × $VAR1 = undef; $test = {}…
perl の if とか defined とかの動作をまとめてみました。 + if if defined print Dumper $test; × × $VAR1 = undef; $test = undef; × × $VAR1 = undef; $test = ''; × ○ $VAR1 = ''; $test = 0; × ○ $VAR1 = 0; $test = (); × × $VAR1 = undef; $test = {}…