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?
In reply to Re^2: Why do i get an extra (duplicate) array element?-
by rickman1
in thread Why do i get an extra (duplicate) array element?-
by rickman1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |