in reply to Re^2: Hash File to Binary ?
in thread Hash File to Binary ?

This is exactly what im trying to do except the fact that I got the following error when running what you suggested:

not a reference at C:\Users\myName\Documents\perl\Mycode.pl line 419. in this case its : store $VAR1, 'MYFILE_2';
My Dump output is exactly as what you mentioned, nothing weird in it. Anyways here is my piece of code for this:
print MYFILE Dumper($data); do 'MIFILE'; store $VAR1, 'MYFILE_2'; close (MYFILE); close (MYFILE2);
do I need to use \% for VAR1 ?
im running this on windows and Linux

Replies are listed 'Best First'.
Re^4: Hash File to Binary ?
by tangent (Parson) on Dec 11, 2013 at 22:29 UTC
    maybe related:  do 'MIFILE';  should be  do 'MYFILE';
Re^4: Hash File to Binary ?
by zak_s (Initiate) on Dec 11, 2013 at 22:36 UTC

    Thats a typo sorry "MIFILE"

Re^4: Hash File to Binary ?
by Anonymous Monk on Dec 11, 2013 at 23:25 UTC

    No need to round-trip $data through Data::Dumper, you can just use

    store $data, 'MYFILE_2';

    ... but maybe $data should be \%something.