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
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
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
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
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,
> 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
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
> 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 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
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
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;
}
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
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
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
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+)\:
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
16 matches
Mail list logo