RE: Reading a line as an array
"Brian Raven" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.active-perl |
|---|---|
| Message-ID | <[email protected]> |
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 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. I couldn't see any sign of your sample data. It would also make it easier to help if you showed your code as well. HTH -- Brian Raven Please consider the environment before printing this e-mail. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs