May 17, 2010, 11:30 AM
Post #3 of 4
Re: [zoomer003] Help with saving the output
[In reply to]
1) Search google for 'code tags'. Read the first 10 results and come back and post what you have learned.
2) Start all your programs with the following lines:
use 5.010; #if using perl 5.10+
3) Declare all variables with my(), e.g.:
my($num1, $num2) = (3, 4);
4) Use the 3-arg form of open(), and use a variable instead of a bareword filehandle:
open my $INFILE, '<', 'data.txt'
or die "Couldn't open data.txt: $!";