It's easy to think of Data::Dumper as just a debugging and development tool; a means of visualizing data structures. But it's also a means of serializing data so that it can be eval'ed back into existence later on. Take a look at Data::Dumper's POD, and you'll find it does what you're asking for.
However, you might find it more maintainable to just use your text files as text files, and read them in. That eliminates the potential for someone editing a file in a way that creates a global variable you weren't expecting to see when you later eval the document.
Dave
In reply to Re: Reading variables from a txt file
by davido
in thread Reading variables from a txt file
by Perl_Padawan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |