I can't seem to restore a object that was previously serialized. Do I need to re-bless?
Thanks for any help!!
Restoring :
Saving object:#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use SomeObject; #is this needed? local($/) = undef; open(D, "data.txt"); my $n = <D>; eval( Dumper($n) ); $n->show();
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use SomeObject; my $n = SomeObject->new(datta => "foo", data2 => "foo2"); open(D, ">data.txt"); print D Data::Dumper::Dumper($n);
In reply to Restore serialized objects by yoda54
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |