"Richard Kelly" <[EMAIL PROTECTED]> wrote on 02/07/2005 02:34:40 PM:
<snip /> > > 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). DCL symbols: see VMS::DCLsym logical names: see the $ENV hash, which will give you any logical name visible to your process. You can create process logicals by creating new keys in this hash. lexicals: no general solution - it depends on what the lexical actually does: RMS with bells and whistles: VMS::Stdio f$setprv, f$privil: VMS::Priv f$getjpi and kindred: VMS::Process f$getqui: VMS::Queue This doesn't exhaust the list by any means. The main omission I know of is f$file_attributes. The Perl stat () function handles the portable portion of this, but not the RMS-specific part. > > 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. > 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. Unfortunately, the documentation assumes you have access to the strftime(3) man page, or a "C" library manual, or some such. Caveat about Date::Manip - last I checked, it wouldn't work under VMS without the TZ environment variable defined. Sullivan Beck has thoughtfully provided in the Date::Manip docs a section titled "Should I use Date::Manip", which is as good an introduction as any I know to the embarassment of choice you have in this area. Tom Wyant This communication is for use by the intended recipient and contains information that may be privileged, confidential or copyrighted under applicable law. If you are not the intended recipient, you are hereby formally notified that any use, copying or distribution of this e-mail, in whole or in part, is strictly prohibited. Please notify the sender by return e-mail and delete this e-mail from your system. Unless explicitly and conspicuously designated as "E-Contract Intended", this e-mail does not constitute a contract offer, a contract amendment, or an acceptance of a contract offer. This e-mail does not constitute a consent to the use of sender's contact information for direct marketing purposes or for transfers of data to third parties. Francais Deutsch Italiano Espanol Portugues Japanese Chinese Korean http://www.DuPont.com/corp/email_disclaimer.html