|
Below is how you create a new file:
open(FILE,">filename.txt");
print FILE "Writing to file\n";
close(FILE);
|
'>' Creates a new file (filename.txt) and opens it for writing.
|
Some other input/output operator's:
'<' open file for reading
'>>' open file for appending
'| output-pipe-command' set up an output filter
'input-pipe-command |' set up an input filter
|