in reply to dynamically creating variables

All the "no strict refs" and "don't do that" comments are pretty much on the money. If you *do* have a good reason for doing it, you can also use string eval:
#!/usr/bin/perl use strict; use warnings; our $f; eval '$f = 10;'; print "f is $f\n";
Where you make up the string to contain the code you need, for each assignment.

If you can change your save format, this is something Data::Dumper can do for you automatically. "You can specify names for individual values to be dumped if you use the "Dump()" method".