in reply to read/write perl variables to/from file

after your code, insert this.
print FILE $myVar; close(FILE); open (FILE,"<$filename") or die "I cannot open $filename to read.\n"; my @file_contents=<FILE>; close(FILE); print "$myVar should equal ".chomp($file_contents[0])."\n";

-Kevin
my $a='62696c6c77667269656e6440676d61696c2e636f6d'; while ($a=~m/(^.{2})/s) {print unpack('A',pack('H*',"$1"));$a=~s/^.{2}//s;}