Let\'s say I have a text file created using Data::Dumper, along the lines of:
my $x = [ { foo => \'bar\', asdf => undef }, 0, -4, [ [] ] ];
Here's a thread that provides a couple different options: Undumper
If you're just looking for data persistence the Storable module might be your best bet.