W
Size: a a a
W
W
W
d
W
W
d
undef
-значения перед encode_json
.W
AP
AP
$ perl -MList::Util=pairgrep -MJSON -E '%h=(s=>undef, r=>23, ll=>99, tt=>undef); say encode_json +{pairgrep {defined $b} %h}'
{"r":23,"ll":99}
AP
SZ
d
IB
IB
SZ
SZ
AP
AP
YK
use List::Util 'pairgrep';
write_to_file(+{ pairgrep { defined $b } %$hashref });