At 2:34 PM -0500 2/7/05, Richard Kelly wrote:
>I have looked through the archives but I have not been able to find a 
>reference to any perl functions that perform the equivalent of f$cvtime and 
>f$delta_time. 

If you need to manipulate VMS quadword dates, then in addtion to the
modules Michael mentioned, when you head over to search.cpan.org, you
will also want to acquire a copy of VMS::Misc, which has
date_to_quad(), quad_to_date(), and vms_date_to_unix_epoch().  If you
are not concerned with VMS binary dates, though, then these won't
help you.

> Another issue I will probably encounter in the future is accessing DCL 
> symbols, logical names, and lexicals ( I have seen some discussion of 
> lexicals but I have not seen a conclusion).

For information on accessing DCL symbols, type

$ perldoc VMS::DCLsym

This module has been part of the Perl core for years -- no need to
install anything.

Logical names are typically accessed through Perl's %ENV hash.  You'll find 
more information via

$ perldoc perlvms

and reading the section on Perl variables.  There is also a
VMS::Logical extension on CPAN for finer-grained control.

A DCL lexical function is often just a command language wrapper
around a system service.  Perl generally has its own wrappers around
these services.  For example, the VMS::Process extension is based on
$GETJPI, VMS::System on $GETSYI, and so on.  Again, CPAN is your
friend in locating these extensions, or search the archives of this
list for a Perl 5.8.4 binary kit that has them already included.

> I am actually trying to build a report generator that reads the .CSV 
> formatted files from ECP but I am not sure if there is an easy way to convert 
> the date/time fields into weekday, month etc.

Cool.  I'm sure there are CSV parsers on CPAN as well, so you don't
even have to start from scratch there.  Depending on what sort of
reports you are creating there may be other modules you'll want as
well.  For example, you can use RTF::Writer to generate files that
can be e-mailed to the pointy-haired bosses for reading in their
office software.

-- 
________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser

Reply via email to