This line:

# Loop through all of these customers
 for (my $i = 0; $i < $#data; $i++)
        where you are doing the $#data needs to be changed to scalar(@data)
or 

        change the < $#data to <= $#data

Wags ;)

-----Original Message-----
From: Caroline Warnock [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 08:06
To: [EMAIL PROTECTED]
Subject: Outputting to a file.


I am trying to modify a Perl script that was written by an ex
employee. 
The script is supposed to extract customer details from our
database so that the details can be transferred using sendmail to
another database. 

The test data on the database consists of 7 customers from 111111111
to 777777777. I have managed to get the script to print all but one
customer (777777777) to the output file (test.xml) also each customer
is being added to the file several times before the loop moves on to
the next customer. 

Can have a look at the script and shed some light on why this might
be happening.

Thanks
Caroline


**********************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
****************************************************************


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to