RE: pulling values from a hash?

2001-11-26 Thread Thiebaud Richard
> From: Satelle, StevenX [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 26, 2001 6:02 PM > To: Perl Users Win32 (E-mail) > Subject: pulling values from a hash? > .., > foreach $k (keys %vals) { > $key = $vals{$k}; >print "$$key[0] = $$key[2]\n"; > } > print "$vals{'mach

pulling values from a hash?

2001-11-26 Thread Satelle, StevenX
I am working on some Perl scripts in work and having what's left of my brain destroyed by a hash. I have a script to enter some values into the registry, and another to pull the values back out again. They go into the reg fine (I've checked this, they do) and I can pull out all the values no probl

RE: Windows XP Search feature can't look in .pl files?

2001-11-26 Thread Capacio, Paula J
Bennett, I can confirm this behavior on XP Professional Version 5.1 Build 2600. I didn't do the upgrade but I believe it was a clean install as we are now in the process of reinstalling all the software that used to be installed on that workstation. This may not be an option for you, and

Re: using perl library to find Julian Day

2001-11-26 Thread Cassell . David
Carl Jolley wrote [in part]: > I find that most uses of Julian date is to allow calculation in elapsed > days or to facilitate the calculatation of the difference in days between > two dates. Date:Manip does those tasks just fine including calculation of > "business" days based on a list of holid

RE: Sending HTML mail using Win32::OLE::Const

2001-11-26 Thread Scot Robnett
Title: RE: Sending HTML mail using Win32::OLE::Const I appreciate the feedback and I'll probably take that route from now on, but there must be an easy option to simply set this property of the mail object. I was hoping not to have to rewrite the entire thing because I don't know the sy

RE: Sending HTML mail using Win32::OLE::Const

2001-11-26 Thread Mitsuda, Alex
Title: RE: Sending HTML mail using Win32::OLE::Const As per $BILL, it's probably best to use MIME::LITE available via PPM. I'm using it currently and makes sending any text/html or multipart mail very easy... -Original Message- From: Scot Robnett [mailto:[EMAIL PROTECTED]]

Sending HTML mail using Win32::OLE::Const

2001-11-26 Thread Scot Robnett
Can anyone tell me how to set the BodyFormat option to 0 in order to send mail as MIME type text/html rather than text/plain? I've tried several approaches to setting that option on the mail object but to no avail. The following sends text/plain: #

RE: using perl library to find Julian Day

2001-11-26 Thread Jones Robert Contr TTMS Keesler
I personally prefer Date::Calc with the Julian date feature. Date::Calc (Day_of_Year) $julian_days = Day_of_Year($year, $month, $day); -Original Message- From: Carl Jolley [mailto:[EMAIL PROTECTED]] Sent: Monday, November 26, 2001 1:53 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED];

Re: using perl library to find Julian Day

2001-11-26 Thread Carl Jolley
I find that most uses of Julian date is to allow calculation in elapsed days or to facilitate the calculatation of the difference in days between two dates. Date:Manip does those tasks just fine including calculation of "business" days based on a list of holidays. Also, from a curiosity standpoint

Re: using perl library to find Julian Day

2001-11-26 Thread Cassell . David
Carl Jolley wrote: > I find that Date::Manip can do just about anything you can imagine > with a date. Yep.. except for Julian dates. But, in my experience with this question, most people who ask for 'Julian date' don't want the real thing. They want Gregorian, or they want days since one of t

Re: using perl library to find Julian Day

2001-11-26 Thread Carl Jolley
On Sat, 24 Nov 2001, Raj Subedi wrote: > Hi friends, > > I am trying to find Julian day. In one of discussion I > found the suggestion of using library date.pl to > convert over to julian day. But I couldnot locate this > library and use it. > > ($month, $day, $year) = split (/\//, $time); > > $j

RE:How to delete a line in a file

2001-11-26 Thread Tim . Moose
Better yet... perl -ni.bak -e "print unless /^\s*subnet/" input.txt will update input.txt and backup the original file in input.txt.bak. Tim ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo

RE:How to delete a line in a file

2001-11-26 Thread Tim . Moose
>Hi, I would like to parse a file and delete the entire line if it begins with >subnet. >How can I do this in Perl? >Thanks. Step one: Type the command perl -e "print unless /^\s*subnet/" -n infile.txt >outfile.txt where infile.txt and outfile.txt have the obvious meaning. Step two:

Re: How to delete a line in a file

2001-11-26 Thread Simon Oliver
Jorge Goncalvez wrote: > Hi, I would like to parse a file and delete the entire line if it begins with > subnet. > How can I do this in Perl? You can't - but you can write the lines-to-keep to a new temporary file - then unkink original and rename temporary files as necessary, something like ...

Re: using perl library to find Julian Day

2001-11-26 Thread Cassell . David
Raj Subedi wrote [in part]: > I am trying to find Julian day. I suggest that before you go too much farther, you use perldoc and read what the Perl docs have to say about the subject. [Hey, I didn't write that stuff to have it be ignored! :-) ] C:\> perldoc -q Julian HTH, David -- David Cass

RE: How to delete a line in a file

2001-11-26 Thread Joseph P. Discenza
Jorge Goncalvez wrote, on Monday, November 26, 2001 11:31 AM : Hi, I would like to parse a file and delete the entire line if it : begins with : subnet. : How can I do this in Perl? Start by reading the faq. "perldoc -q delete" gives (among other interesting tidbits): Found in D:\Perl

RE:How to delete a line in a file

2001-11-26 Thread Jorge Goncalvez
Hi, I would like to parse a file and delete the entire line if it begins with subnet. How can I do this in Perl? Thanks. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

RE: BTrieve Databases

2001-11-26 Thread Cornish, Merrill
Have you tried an ODBC connection?   Merrill -Original Message-From: Oliver Manickum [mailto:[EMAIL PROTECTED]]Sent: Monday, November 26, 2001 6:52 AMTo: [EMAIL PROTECTED]Subject: BTrieve Databases Hey Guys,         Has anyone had anyluck with using Perl to acc

OLE? PerfLib? Translating a PID to a MTS package name

2001-11-26 Thread Henning Michael Møller-Nielsen
Hi I am back to watching our webservers - I want to know which webserver process is eating the memory. I can find this out by trial-and-error myself, but I want to do it with a script. I can find the PID of the process through Win32::Perflib. I can find all the isolated processes of the

Re: multiple file downloads using ftp in perl-win32.

2001-11-26 Thread Kuhnibert
> I want to use ftp for downloading multiple files in > perl-win32 system. I am working in ActivePerl. > > since I am working in Win2k, I am trying to write > alternative to .netrc as below. > > > my perl script calls a download.bat. > > The download.bat contains: > ftp -s:ftpcmds.txt servertoac