Help for this page
open FILE, ">filename" or die $!; print FILE $myVar, "\n"; ... $myVal = <FILE>; chomp $myVal; #remove the newline close FILE;