Re: Reading a line as an array

2010-09-22 Thread zilore mumba
Brian, Thanks, the code you sent does exactly what I want. Thanks for your time and thanks to all those who looked at my code. Zilore - Original Message From: Brian Raven To: activeperl@listserv.activestate.com Sent: Wed, September 22, 2010 10:57:40 AM Subject: RE: Reading a line as

RE: Reading a line as an array

2010-09-22 Thread Brian Raven
zilore mumba <> wrote: > Excuse me for the missing attachments. As I composed the mail in > gmail which is not recognised on the mailing list. The attachments > are now included. The main problem with your code, in addition to Jusin's point about file handle naming, is with the line: my @ra

Re: Reading a line as an array

2010-09-22 Thread zilore mumba
Justin, Thank you very much indeed for your suggestion. First I changed the file naming as you pointed out (In for initial input). The code works, except for one small snag, which is really due to me. The code with your suggestion below. The "print OUT '$rain[0], $rain[1]';", prints "$rain[0], $r

Re: Reading a line as an array

2010-09-21 Thread Justin Allegakoen
oode, Eric" > To: activeperl@listserv.activestate.com > Cc: zilore mumba > Sent: Tue, September 21, 2010 4:36:19 PM > Subject: RE: Reading a line as an array > > On Tuesday, September 21, 2010 11:27 AM, zilore mumba wrote: > > > Hello Perl Community, > > This mail was posted o

Re: Reading a line as an array

2010-09-21 Thread zilore mumba
10 4:36:19 PM Subject: RE: Reading a line as an array On Tuesday, September 21, 2010 11:27 AM, zilore mumba wrote: > Hello Perl Community, > This mail was posted on gmail but may have been vetted by the moderator. > firstly my apologies for 1) a very basic question, 2) something I >

RE: Reading a line as an array

2010-09-21 Thread Roode, Eric
On Tuesday, September 21, 2010 11:27 AM, zilore mumba wrote: > Hello Perl Community, > This mail was posted on gmail but may have been vetted by the moderator. > firstly my apologies for 1) a very basic question, 2) something I > should do in C. > 1. I have rainfal data (attached as sample.txt) mo

RE: Reading a line as an array

2010-09-21 Thread Brian Raven
zilore mumba <> wrote: > Hello Perl Community, > This mail was posted on gmail but may have been vetted by the > moderator. > firstly my apologies for 1) a very basic question, 2) something I > should do in C. > 1. I have rainfal data (attached as sample.txt) month by month in > mixed float and i

Reading a line as an array

2010-09-21 Thread zilore mumba
Hello Perl Community, This mail was posted on gmail but may have been vetted by the moderator. firstly my apologies for 1) a very basic question, 2) something I should do in C. 1. I have rainfal data (attached as sample.txt) month by month in mixed float and integer which I cannot handle in fortran