open(FILE,">/path/to/file") or die "could not open file: $!"; print FILE qq~Hello this is just a test to see if it works.~; close(FILE);