in reply to simple script question scope/structure for Perl noob
For a start put:
use strict; use warnings;
at the start of your script.
By the time you have removed all the warnings and errors your problem will have changed!
Some sample data would help. You may like to use <DATA> rather than <FILE> and put a __DATA__ section at the end of your script.
Update: Add sample data comment
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: simple script question scope/structure for Perl noob
by mrborisguy (Hermit) on Jun 26, 2005 at 22:12 UTC | |
by polettix (Vicar) on Jun 26, 2005 at 22:20 UTC | |
by GrandFather (Saint) on Jun 26, 2005 at 22:20 UTC |