Thread undef in Datei speichern (20 answers)
Opened by rosti at 2013-10-21 09:42

Raubtier
 2013-10-22 00:57
#171381 #171381
User since
2012-05-04
1075 Artikel
BenutzerIn
[default_avatar]
Wie man sieht, kommt Storable mit 0 und undef klar:
Code: (dl )
1
2
3
4
5
6
7
8
perl -wE'use Storable;my @data=qw(a);push @data,undef;push @data, chr(0); push @data,"d";store \@data, "/tmp/store"'
perl -wE'use Storable;my $aref = retrieve "/tmp/store";use Data::Dumper;$Data::Dumper::Useqq=1;print Dumper $aref'
$VAR1 = [
"a",
undef,
"\0",
"d"
];

View full thread undef in Datei speichern