-#!/usr/bin/perl
$|++;
use strict;
use warnings;
object => Foo->new( number => 2 ),
);
isa_ok( $foo, 'Foo' );
-
+
my $stored = $foo->freeze;
my $struct = Storable::thaw($stored);
'__CLASS__' => 'Foo',
'float' => 10.5,
'number' => 10,
- 'string' => 'foo',
+ 'string' => 'foo',
'array' => [ 1 .. 10],
- 'hash' => { map { $_ => undef } 1 .. 10 },
+ 'hash' => { map { $_ => undef } 1 .. 10 },
'object' => {
'__CLASS__' => 'Foo',
'number' => 2
'__CLASS__' => 'Foo',
'float' => 10.5,
'number' => 10,
- 'string' => 'foo',
+ 'string' => 'foo',
'array' => [ 1 .. 10],
- 'hash' => { map { $_ => undef } 1 .. 10 },
+ 'hash' => { map { $_ => undef } 1 .. 10 },
'object' => {
'__CLASS__' => 'Foo',
'number' => 2
},
});
-
+
my $foo = Foo->thaw($stored);
isa_ok( $foo, 'Foo' );