title: Store and read hash and array in files in Perl
body: <p>I'm a noob.I need some basic knowledge about how data should be saved and read under perl. Say to save a hash and an array. What format (extension) of file should be used? txt? So far I can only save all the things as string<code>print FILE %hash</code> and read them back as string<code>print &lt;FILE&gt;</code>. What should I do if I need my function hash and array inputs from a file. How to put them back to hash and array?</p>