#!/usr/bin/perl -a #### #!/usr/bin/perl #### Premature end of script headers #### 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);