RE: updating a file in place is almost working

2002-07-01 Thread Rice, Elizabeth A.
Well, I think I figured it out. When I reviewed the examples in Perl Cookbook more closely I realized that the array has to be big enough to hold all the lines that go back into the existing file. If we run our script shortly after midnight, parsing for date, most of the lines will go to the

Matching question

2002-04-03 Thread Rice, Elizabeth A.
I am trying to find the first occurrance of a date string in several different files in order to re-write all of today's entries back into the existing log file after taking out all the old entries to be archived. (I also realize lots of folks have done this and I'm sure come up with much

Re: workaround for unix2dos system command

2001-10-25 Thread Rice, Elizabeth A.
on OS/390 there is no unix2dos command available. So, if I use the file as is, it is sent in the email but it comes out with no carriage returns, etc., making the file unreadable when it is of any significant size. You can use a simple oneliner in Perl to convert text files see

File names on NT

2001-08-29 Thread Rice, Elizabeth A.
My PERL program uses the File::Find routine to find files that match a certain description, and then build a file that contains a list of these filenames. Later I pass that file with the list of filenames to an archive program, invoked via the system function. The File::Find puts the names

FW: File names on NT

2001-08-29 Thread Rice, Elizabeth A.
. -- From: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 11:13 AM To: Rice, Elizabeth A. Subject: Re: File names on NT The following message is a courtesy copy of an article that has been posted to perl.beginners as well. Elizabeth == Elizabeth

Sending mail using PERL with file as body of message

2001-08-01 Thread Rice, Elizabeth A.
I've been looking for a tool to send a email to multiple recipients, using a file as input to the body of the message, that will working on multiple operating systems, and is fairly simple since I'm new at this. I've investiaged Mail::Mailer and Net::SMTP, but maybe because I'm a newbie these