Help for this page
use strict; ... if(open (my $mem, '>', \$var)) {print "Success\n"} } else {print "Ok\n"}