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";
my $a='62696c6c77667269656e6440676d61696c2e636f6d'; while ($a=~m/(^.{2})/s) {print unpack('A',pack('H*',"$1"));$a=~s/^.{2}//s;}
In reply to Re: read/write perl variables to/from file
by K_M_McMahon
in thread read/write perl variables to/from file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |