Hello,
I am trying to write a little script that will compare two hashes with the
same keys but conflicting values. I have found some great examples of how
to compare hashes and locate common keys or missing keys (in the cookbook).
I have also found a great example of how to locate duplicate
On Wed, 1 Feb 2006, Angus wrote:
I am trying to write a little script that will compare two hashes with the
same keys but conflicting values. I have found some great examples of how
to compare hashes and locate common keys or missing keys (in the cookbook).
I have also found a great
Angus am Mittwoch, 1. Februar 2006 10.04:
Hello,
I am trying to write a little script that will compare two hashes with the
same keys but conflicting values. I have found some great examples of how
to compare hashes and locate common keys or missing keys (in the cookbook).
I have also
Sorry for another mail, but there are too many typos:
Also untested:
# If no conflict, value is hostname.
# If conflict, value is arrayref with the two different IPs
#
my @res = map {
($actual{$_} eq $register{$_})
? $_
: [$actual{$_}, $register{$_}]
} sort keys %register;
Hello everyone,
I have a large chunk of data that I need to insert into a text or blob
field in mysql. I've tried all the usually escaping it, but nothing
seems to work. I'm even using dbh-quote as I thought it might help.
Here's my code:
my $sth = $dbh-prepare(insert into nascar_media
hello,
You have misunderstood my meanings.
I fork the child process in socket server's parent process,and the socket
server accept the requests from socket clients,which are distributed in about
200 different hosts.
I don't do the IPC communication of child-to-parent socket.:-)
-Original
Kevin Old am Mittwoch, 1. Februar 2006 13.44:
Hello everyone,
I have a large chunk of data that I need to insert into a text or blob
field in mysql. I've tried all the usually escaping it, but nothing
seems to work. I'm even using dbh-quote as I thought it might help.
Here's my code:
my
All,
I've been working on a script to grab the owner of processes on my
systems and it works great if I limit it to one machine at a time. If
try to pass it multiple hostnames in a loop, it bombs out after the
first host is completed. I've Googled, checked the docs for the module,
and
Are you sure you permission to talk to the other servers?
You might also want to check to see if there is any way to get
extended error messages from Win32::Process::Info.
On 2/1/06, Ryan Frantz [EMAIL PROTECTED] wrote:
All,
I've been working on a script to grab the owner of processes on my
I don't know if this would have too much overhead, but why couldn't you
use a database? For example, mysql commits writes to a linked list
cache, and if you are reading and writing as often as it sounds, your
reads probably won't ever hit the disk. It waits as long as possible
before flushing to
What exactly do you mean by bombs out?
-Original Message-
From: Ryan Frantz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 10:46 AM
To: beginners@perl.org
Subject: Win32::Process::Info - Get Owner Information
All,
I've been working on a script to grab the owner of
-Original Message-
From: Timothy Johnson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 6:12 PM
To: Ryan Frantz; beginners@perl.org
Subject: RE: Win32::Process::Info - Get Owner Information
What exactly do you mean by bombs out?
The script will process the first
-Original Message-
From: Ryan Frantz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 3:16 PM
To: Timothy Johnson; beginners@perl.org
Subject: RE: Win32::Process::Info - Get Owner Information
-Original Message-
From: Timothy Johnson [mailto:[EMAIL PROTECTED]
On 2/1/06, Ryan Frantz [EMAIL PROTECTED] wrote:
snip
The script will process the first host in the list, begin processing the
second host, and then perl.exe dies with a popup asking me to send
details to M$. I'm not very fluent with OOP, but is it possible that
the first object has to be
I just had another thought. Have you tired putting the same server
name in multiple times. If it works multiple times with the same
server name then the problem is definitly the other servers not the
Perl code.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
-Original Message-
From: Chas Owens [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 3:25 PM
To: Ryan Frantz
Cc: Timothy Johnson; beginners@perl.org
Subject: Re: Win32::Process::Info - Get Owner Information
On 2/1/06, Ryan Frantz [EMAIL PROTECTED] wrote:
snip
The script
On 2/1/06, Jeff Pang [EMAIL PROTECTED] wrote:
hello,
You have misunderstood my meanings.
I fork the child process in socket server's parent process,and the socket
server accept the requests from socket clients,which are distributed in about
200 different hosts.
I don't do the IPC
-Original Message-
From: Chas Owens [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 6:28 PM
To: Ryan Frantz
Cc: Timothy Johnson; beginners@perl.org
Subject: Re: Win32::Process::Info - Get Owner Information
I just had another thought. Have you tired putting the same
Make sure that your Win32::OLE version is up-to-date, and also try
running the script from a different computer.
-Original Message-
From: Ryan Frantz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 5:04 PM
To: Chas Owens
Cc: beginners@perl.org
Subject: RE:
Hi all.
I've got an app than runs on Linux and Windows. I invoke it:
script_name.pl USERID
where USERID is a number that identifies the user. Under Linux, and
under *some* Windows 2000 installations, I can then get the value of USERID:
my $userid = shift;
However I just noticed that on a
Just to clarify, you're able to invoke the script by typing
script_name.pl, right?
Because one possible reason would be that your file association somehow
didn't take when you installed activeperl.
Also, does it work if you do:
my $userid = $ARGV[0];
?
-Original Message-
Timothy Johnson wrote:
Just to clarify, you're able to invoke the script by typing
script_name.pl, right?
Yep.
Because one possible reason would be that your file association somehow
didn't take when you installed activeperl.
Also, does it work if you do:
my $userid =
Thanks fo Jay.I'm now reading the docs about perl's threads.
I have been watching that program,and find it run well at the current
time.But,it's not the normal pressure for it.Because these days are our New
Year,all people are going home for their vacations.When the vacation is end,the
pressure
-Original Message-
From: Daniel Kasak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 6:09 PM
To: Timothy Johnson; Perl Beginners
Subject: Re: Script's command-line options under Windows
Timothy Johnson wrote:
Just to clarify, you're able to invoke the script by typing
Timothy Johnson wrote:
One more question. Does it work if you do it like this?
perl script_name.pl argument
Yes, actually!
Strange ... very strange.
Thanks :)
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2
It sounds like there is a problem with your file association.
Open HKEY_CLASSES_ROOT and go to Perl--Shell--Open--Command.
The (Default) entry should probably read:
C:\Perl\bin\perl.exe %1 %*
-Original Message-
From: Daniel Kasak [mailto:[EMAIL PROTECTED]
Sent: Wednesday,
Timothy Johnson wrote:
It sounds like there is a problem with your file association.
Open HKEY_CLASSES_ROOT and go to Perl--Shell--Open--Command.
The (Default) entry should probably read:
C:\Perl\bin\perl.exe %1 %*
I'll check it out tomorrow when I can get back to the PC.
Thanks :)
--
27 matches
Mail list logo