Reading a line as an array

zilore mumba <[email protected]>
Newsgroups gmane.comp.lang.perl.active-perl
Message-ID <[email protected]>
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. I need to
first rewrite the data all in real (float) before I can use fortran.
2. The perl script I have written read line by line, but then how do I
split the line into 31 values?
3. as it is, the script rewrites each line and does not change any int
into float, I tried printf (with format) it doesn't work.
Is it possible?
Assistance will be appreciated.
Zilore


      
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.