Look at perldoc -f print to see how to print to a file (or just redirect the output in your shell).
See also:
In reply to Re: Help with accepting inputs, wordcount, and print to a file
by toolic
in thread Help with accepting inputs, wordcount, and print to a file
by underoathed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |