in reply to get array number
A couple of comments;
use strict; use warnings;
As for your question, if I understand it correctly, you need to fix the print statement to refer to your array variable, as written, it is simply printing the text that is enclosed in the quotes.
print "name = $LINEREC[0]\n"; print "postcode = $LINEREC[3]\n";
Scott
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: get array number
by darrengan (Sexton) on Jan 20, 2006 at 06:24 UTC | |
by Sioln (Sexton) on Jan 20, 2006 at 08:55 UTC | |
by helphand (Pilgrim) on Jan 20, 2006 at 06:34 UTC | |
by smokemachine (Hermit) on Jan 20, 2006 at 07:50 UTC |