Re: some error with the code

2004-11-26 Thread David Vergin
On Fri, 26 Nov 2004 20:41:01 -0800, $Bill Luebkert wrote: > peace under the tree wrote: >> I code this program but It don' t run, I don't know what the >> problem with it, Can anyone help? Thank you! >> > Try (note the quoted numbers in hash keys) : To follow up on what Bill said and better unders

Re: some error with the code

2004-11-26 Thread $Bill Luebkert
peace under the tree wrote: > hi, everyone > > I code this program but It don' t run, I don't know what the problem > with it, Can anyone help? Thank you! > Try (note the quoted numbers in hash keys) : use strict; print "Enter id: "; chomp (my $id=); my @res = match ($id); print "@res\n"; su

some error with the code

2004-11-26 Thread peace under the tree
hi, everyone I code this program but It don' t run, I don't know what the problem with it, Can anyone help? Thank you! #!/perl/bin/perl use strict; print "Enter id: "; chomp (my $id=); print match($id); sub match { my $matchID=shift; m

Re: Win32::Process::Info

2004-11-26 Thread $Bill Luebkert
Leroy G. Blimegger Jr. wrote: > All, > > Has anyone used the Win32::Process::Info package? I'm trying to determine > which processes are running on a machine. I can get all of the PIDS, but I’m > having difficulty getting the PID info: > > use Win32; > use Win32::Process; > use Win32::Process::In

Win32::Process::Info

2004-11-26 Thread Leroy G. Blimegger Jr.
All, Has anyone used the Win32::Process::Info package? I'm trying to determine which processes are running on a machine. I can get all of the PIDS, but I’m having difficulty getting the PID info: use Win32; use Win32::Process; use Win32::Process::Info; $pi = Win32::Process::Info->new (); @pids =

RE: Perl-Win32-Users Digest, Vol 10, Issue 27

2004-11-26 Thread Leroy G. Blimegger Jr.
Richard, Excellent suggestion! Though, I think there's a small possibility that a new instance of Excel could be started between the time I get all the PIDs for Excel and I start my own instance. But, for now, I think it's a good workaround for my problem. I'd still like to determine why the des

RE: Looking for suggestions - how to sort & merge comma separated quoted string files

2004-11-26 Thread McGlinchy, Alistair
Bill, > The problem is that some of the double-quoted strings contain > newlines. OK, there are a lot of newlines in these quoted > strings - and they have to remain in the data. You could be lucky and get away with setting the record delimiter to be a qw(\"\n). It depends on how well you can t

RE: Killing a Process

2004-11-26 Thread Beckett Richard-qswi266
A completely untested thought that popped into my head when reading the thread... Get all PIDs for Excel instances. Start your instance of Excel. Get all PIDs for Excel instances. This way you should be able to work out which one is yours? Like I said, untested, and just a thought. R.

RE: Killing a Process

2004-11-26 Thread Leroy G. Blimegger Jr.
Rob, Yeah, after you mentioned Win32::Process, I thought I might be able to use a combination of that and Win32::OLE, but as you said, I have no way to pick the specific instance of Excel that I started using OLE. And since these apps are run on engineering workstations, it's very likely that ther

Re: Killing a Process

2004-11-26 Thread Sisyphus
Leroy G. Blimegger Jr. wrote: Should have known you'd be using Win32::OLE. I really don't know much ... and that's especially true of Win32::OLE. But if you have an instance of Excel that you've started with Win32::Process, you could access *it* instead of starting up a new instance of it: