Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Formatting the column of a CSV file using perl

by gouse.aman (Initiate)
on May 06, 2013 at 06:12 UTC ( [id://1032178]=perlquestion: print w/replies, xml ) Need Help??

gouse.aman has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I have been working perl from a good time and now I have come across one problem. I have to read a CSV file and get the data and for few conditions I have to read the 2nd column data which has the time and write it into a text file. The data format seems something like "21:09.3" when open with excel file to see the value and prints the same way in my output file. Now when I open it with wordpad it shows the same value as "18:21:09.32". I can directly format the column in excel but that has to be done through the perl script itself. So please provide a quick answer soon. Help at the earliest needed. Thanks!
  • Comment on Formatting the column of a CSV file using perl

Replies are listed 'Best First'.
Re: Formatting the column of a CSV file using perl
by marto (Cardinal) on May 06, 2013 at 07:29 UTC
Re: Formatting the column of a CSV file using perl
by Anonymous Monk on May 06, 2013 at 06:56 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1032178]
Approved by herveus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-23 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found