See "perldoc -f do"my %hash = ('foo' => 3, 'bar' => 'baz'); open my $out, '>', 'A_tmp_file' or die "Damn: $!"; print $out Dumper(\%hash); close $out or die $!; my $ref = do 'A_tmp_file' or die "Noo: $!"; print "$ref->{'bar'}\n";
In reply to Re: Need Example of Saving and Retrieving Hash from File
by lidden
in thread Need Example of Saving and Retrieving Hash from File
by EchoAngel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |