Grep help ... !!!

2002-04-09 Thread Ravi Mahendrakar
I need to grep an output which has the lines repeating with different values ... Like ... My name is Tom Registration# 1 My name is Bobby Registration# 2 My name is Jimmy Registration# 3 and the number of lines also varies I need to get the name and Registration# and store it in variables ... whi

Re: Strings and Eval Alternatives?????????

2002-04-09 Thread Carl Jolley
On Mon, 8 Apr 2002, Martin Moss wrote: > All, > > interesting problem:- > > Is eval the only way to take a string ($string) containing a few lines of > perl code and execute it. > > e.g. > my $string=' > my $id=$tmp{id}; > if ($id=~/yyy/) > { > print "$id matched\n

Re: Module to parse out a list of email addresses?

2002-04-09 Thread Carl Jolley
On Sun, 7 Apr 2002, Terry Carroll wrote: > I need to code a program that takes in a list of email addresses on one > line, parses them out, applies a selection criteria, and outputs only > those meeting the criteria. This is probably akin to, but not quite > spot-on, processing a comma-separated

RE: :mysql

2002-04-09 Thread Lee Goddard
Hm, that's weird: look what I saw: PPM - Programmer's Package Manager version 3.0 beta 2. Copyright (c) 2001 ActiveState SRL. All Rights Reserved. Entering interactive shell. Using Term::ReadLine::Stub as readline library. Profile tracking is not enabled. If you save and restore profiles manual

RE: remove first line

2002-04-09 Thread Ember Normand
That's an interesting idea. We are pursuing options for when we can't use an "official" transaction manager. I had not considered this method. What would you recommend for "chunking" the file? Thanks, Ember -Original Message- From: Aaron Trevena [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

RE: remove first line

2002-04-09 Thread Aaron Trevena
> I need to process a file where each line contains data. Each > line can be of variable length. I need to avoid losing any data if the process > of the line failed. I was thinking if I could read and then remove the first line of > the file, I would not affect the rest of the file if I died mi

RE: remove first line

2002-04-09 Thread Ember Normand
I'm more worried about dying because the machine goes down. -Original Message- From: Tillman, James [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 11:01 AM To: 'Ember Normand'; '[EMAIL PROTECTED]' Subject: RE: remove first line > I need to process a file where each line contai

RE: remove first line

2002-04-09 Thread Tillman, James
> I need to process a file where each line contains data. Each > line can be of > variable length. I need to avoid losing any data if the > process of the line > failed. I was thinking if I could read and then remove the > first line of > the file, I would not affect the rest of the file if

remove first line

2002-04-09 Thread Ember Normand
I need to process a file where each line contains data. Each line can be of variable length. I need to avoid losing any data if the process of the line failed. I was thinking if I could read and then remove the first line of the file, I would not affect the rest of the file if I died mid-proces

RE: Annoyance with Tk::FileDialog in MSWindows

2002-04-09 Thread Joseph Youngquist
It's been a bit since I worked with Perl/Tk but I recall the Toplevel widget... """ A toplevel is similar to a frame except that it is created as a top-level window: its X parent is the root window of a screen rather than the logical parent from its path name. The primary purpose of a toplevel is

Fastest way to locate a list of files with certain tex

2002-04-09 Thread Walter Usyk
I have a algorithm question about locating a list of files that contain certain text: Here is the algorithm that is used in the code:     if (!opendir(DIR, "$changeSetCacheDirectory")){     &Common::Error("Can't open directory $changeSetCacheDirectory : $!");     return $ERROR;     }    

RE: help matching special characters!

2002-04-09 Thread Warkentin, Brad
Peter Eisengrein [mailto:[EMAIL PROTECTED]] wrote: > I have a script that reads through a log file and does stuff when > certain lines are matched. Some of the lines start with a * and the > following regex's used to work: > if(/\*C(\d+)\:(\d+)\:(\d+)\s+\d+\,\d+(.*COMPL)/){ #do stuff > }elsif

Annoyance with Tk::FileDialog in MSWindows

2002-04-09 Thread Radecki, Maria T
I'm using Tk::FileDialog for file and directory selection. I have a problem in MS Windows, the FileDialog window appears behind the parent window and is therefore partially or fully hidden. An annoyance to the user. The script must run on both UNIX and MSWindows platforms. I chose Tk::FileDialog

Re: help matching special characters!

2002-04-09 Thread Tim . Moose
Please provide a minimal test script that exhibits the problem. Tim ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

help matching special characters!

2002-04-09 Thread Peter Eisengrein
Title: help matching special characters! I have a script that reads through a log file and does stuff when certain lines are matched. Some of the lines start with a * and the following regex's used to work: if(/\*C(\d+)\:(\d+)\:(\d+)\s+\d+\,\d+(.*COMPL)/){ #do stuff }elsif(/\*\*(\d+)\:(\d+)\:

RE: log monitoring script

2002-04-09 Thread Peter Eisengrein
Title: RE: log monitoring script In the spirit of teaching you to fish instead of giving you a fish, see 'perldoc -q tail' for a simple way to get the same effect as a 'tail -f' That should get you started. What you are asking for is actually quite easy to do. Why don't you give it a shot and