Re: problem with printing

2008-06-19 Thread Rob Dixon
dakin999 wrote: > > I have following code which works ok. It does following: > > 1. reads data from a input file > 2. puts the data into seperate variables in a array This is where you are getting confused. The data should be /either/ in separate variables /or/ in an array. See below. > 3. read

Re: problem with printing

2008-06-19 Thread yitzle
On Thu, Jun 19, 2008 at 1:57 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Do more simple and whit out numbers, some times the $1 .. are special > vars > > while () { > ($v1,$v2,$v3,$v4)=split(/,/,$_); > print "$v1\n"; > print "$v2\n"; > print "$v3\n"; > print "$v4\n"; > print "\n";

Re: problem with printing

2008-06-19 Thread [EMAIL PROTECTED]
On Jun 19, 5:10 am, [EMAIL PROTECTED] (Dakin999) wrote: > Hi, > > I have following code which works ok. It does following: > > 1. reads data from a input file > 2. puts the data into seperate variables in a array > 3. reads from this array and prints out to another file > > It works except that it

Re: problem with printing

2008-06-19 Thread yitzle
Always: use strict; use warnings; On Thu, Jun 19, 2008 at 6:10 AM, dakin999 <[EMAIL PROTECTED]> wrote: > Hi, > > I have following code which works ok. It does following: > > 1. reads data from a input file > 2. puts the data into seperate variables in a array > 3. reads from this array and prints

problem with printing

2008-06-19 Thread dakin999
Hi, I have following code which works ok. It does following: 1. reads data from a input file 2. puts the data into seperate variables in a array 3. reads from this array and prints out to another file It works except that it prints the same record 4 times. I can see I have missed some thing in m