CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
Read specific file format


New User

Feb 11, 2011, 5:47 AM

Post #1 of 2 (241 views)
Read specific file format Can't Post

Hi all,
Can someone please give a little help?

I need to read a file which contains the format:

4,15,7,2011/01/29 14:00,0.04,0.049,0.07,0.421
4,15,7,2011/01/29 14:00,0.04,0.049,0.07,0.421
4,15,7,2011/01/29 14:00,0.04,0.049,0.07,0.421

I need to get the 2nd column, for example and sum all into a variable.

for example: variable sum_column_2 = 45

Thank you in advanced!



Feb 11, 2011, 8:24 AM

Post #2 of 2 (237 views)
Re: [letakeda] Read specific file format [In reply to] Can't Post

Where exactly are you stuck?

I suggest that you post that part of your program which you already have, and write in pseudocode that part which you can't express in Perl.

Don't forget to

use strict; use warnings;

if you want to get help with your code....



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives