
7stud
Enthusiast
May 17, 2010, 11:30 AM
Post #3 of 4
(409 views)
|
|
Re: [zoomer003] Help with saving the output
[In reply to]
|
Can't Post
|
|
In addition: 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 strict; use warnings; use 5.010; #if using perl 5.10+ 3) Declare all variables with my(), e.g.:
my $num; my @numbers; my($num1, $num2) = (3, 4); my %phone_number_for; 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: $!";
|