in reply to Re: Why do i get an extra (duplicate) array element?-
in thread Why do i get an extra (duplicate) array element?-
Thanks for your reply. Actually that is actual code and output. The only thing missing is where i snatch the file name from command line.
open IN, "<$ARGV[0]" or die "Could not open input file '$ARGV[0]' $!";
So i was reading into the push function but cannot seem to get it right. Not sure just where to place it. When i am loading the array via the substr function or printing it out?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why do i get an extra (duplicate) array element?-
by AnomalousMonk (Archbishop) on Jun 23, 2016 at 21:40 UTC |