I would recommend you read through perlintro, it's not very long and it shows how to do basic file I/O, for example:
my $filename = "output.txt"; open my $fh, '>', $filename or die "$filename: $!"; print $fh "Hello"; close $fh;
In reply to Re: Writing to an output file
by haukex
in thread Writing to an output file
by ameezys
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |