#!/usr/bin/perl use strict; use warnings; my $file = $ARGV[0]; my $line; open (FILE, "< $file"); while ($line = <FILE>) { chomp $line; printf("\n [$line]"); } close FILE;
In reply to Re: How do I write to a file?
by Mago
in thread How do I write to a file?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |