Thomas R Wyant_III <[EMAIL PROTECTED]> wrote: > "Richard Kelly" <[EMAIL PROTECTED]> wrote: > > I am actually trying to build a report generator that reads the .CSV > > formatted files from ECP > > Then you might (or might not) be interested in Text::CSV.
...or it's faster cousin Text::CSV_XS which, IIRC, installs without problems. In fact, I'm using that module (and a few others) in a program that reads ECP TLC files and renders them into web graphs. I haven't published it because IMHO it's not really fit for general use. However, if anyone wants to give it a try, get it from http://www.pdv-systeme.de/users/martinv/t4web_pl.txt > > but I am not sure if there is an easy way to > > convert the date/time fields into weekday, month etc. > > Michael Schwern's posting gets you off to a good start. I'd like to add > Time::Local (for when you don't need the full power of Date::Manip for > input conversion), and the POSIX subroutine strftime (for output > conversion), which knows about month names, days of week, and so forth. I used POSIX::mktime (after parsing the VMS ASCII timestamp with a regex) to convert into seconds since the epoch. And ordinary localtime and printf for the reverse. HTH, Martin -- | Martin Vorlaender | OpenVMS rules! Microsoft isn't the Borg: | work: [EMAIL PROTECTED] the Borg have proper | http://www.pdv-systeme.de/users/martinv/ networking. | home: [EMAIL PROTECTED]