- Original Message -
From: "Mike Reilley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 8:44 PM
Subject: Hash / Array / Sort Help Needed
> I have a list of items that have two fields quantity and desc.
> I need to sort these by quantity and write them out t
I have a list of items that have two fields quantity and desc.
I need to sort these by quantity and write them out to a file.
Seems simple but I jeep getting tongue tied on this one.
There can be duplicate quantities
Example
qty = 10 , descxxx
qty = 10 , descxyz
All Help, Comments, Code Examples,
Let's step back a
second...
When you do the
Win32::Process::Create() does WinRunner start running ok? If it does, then
is the problem with Win32::Process::Create() that the perl script does not wait
for WinRunner to finish?
If so, then yes, you
should try the $Process->Wait(INFINITE);
I am trying to write a script that will pipe my postscript file to ps2pdf
(part of Ghostscript), but I am having an impossible time. Does anyone
who has implemented ghostscript have a code snippet that
demonstrates how to pipe the .ps data to ps2pdf?
Thanks in advance,
Brad Smith
[EMAIL PROTE
no. Should I do this???
ted
- Original Message -
From:
Tom Allebrandi
To: [EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 4:14
PM
Subject: RE: why System command returns
right away?
After you call
Win32::Process::Create(), do you
$Pro
Since HTTP is a stateless protocol, there is no accurate "live" way of
extracting the data you want. You can, however, parse the IIS log files and
grab what you need. I know the following will work on IIS4 and it *should*
pick up on any changes you have made to the logging settings. Just change
After you call
Win32::Process::Create(), do you
$Process->Wait(INFINITE);
to wait for the
application to complete?
---
tom
Here is what I use with
Process:Create:
Win32::Process::Create(
$Process,
"c:\\program files\\mercury
interactive\\winrunner\\arch\\wrun.exe",
"wrun.exe
",
0,
NORMAL_PRIORITY_CLASS, "." ) || d
I tried both OS (98 and 2000) and both return the
command prompt back right away.
ted
- Original Message -
From:
Tom Allebrandi
To: [EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 3:19
PM
Subject: RE: why System command returns
right away?
Is
WinRu
You
could use simple trick.
Simple
synchronization.
Perl
is waiting for a DIR which is going to be created by WinRunner when you need
to.
Do not
use infinite loop.
-Jiri-
-Original Message-From: Ted Zeng
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 12, 2002 2:44
Is
WinRunner a GUI program? That is, does it create windows and things like
that?
Try
opening a MS-DOS Prompt/Command Prompt on 98 and NT and typing the command in by
hand. My guess is that you will find that on NT/2000, you don't get another
command prompt until WinRunner exits, BUT, tha
I know
of one reason why it would return right away, but it doesn't explain why it
works as you expect on other OSes. Some programs, such as InstallShield,
use a two-step startup. The executable you click on does little more than
determine which OS you are running on a then launches the ve
I run activeperl on Win98 SE,
where the script has a line
system ( "...");
The command run WinRunner and a WinRunner
script.
the command lasts for a couple of min., but the
perl
script continues
right away.
It doesn't have this problem on NT4,
Win2000.
I also try to Win32:Process:Creat
- Original Message -
From: "Floyd Russell" <[EMAIL PROTECTED]>
To: "Perl Users" <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 5:28 PM
Subject: RE: exec $0 on Win32
> After further investigation it seems that Frontier::Daemon
can't rebind to
> the port that was being used. The only
After further investigation it seems that Frontier::Daemon can't rebind to
the port that was being used. The only way it could do that is if the client
that initiated the restart kills itself before the daemon has time to
restart. Which won't work because the client will block the port until it
ge
I have a written a script that utilizes the Frontier::Daemon module.
Currently, whenever I want to distribute the code to the eight servers it
must run on I have to do it by had using scp or ftp. Quite frankly that
sucks. One of my co-workers suggested that I make a subroutine that will
take in ne
Sounds to me like you've got two Perl's installed, one linked to PWS, one
to your PATH variable.
Check the ScriptMap registry key you set when you installed PWS against the
PATH enviroment variable (by typing SET PATH at a command prompt).
hth
Lee
_
Alistair,
No need to fall off of the horse, you will get bruised that way. Sometimes you have to
point your horse in a different direction to
view the horizon. Note the following:
{
use Benchmark;
timethese(10,
{'sprintf' => sub {my $num = '0.00';$num = sprintf('%1.
Try this for a simplicity to get you started
#!/usr/local/bin/perl
use strict;
use Win32::OLE;
my $count;
my $outlook = Win32::OLE->GetActiveObject('Outlook.Application')
|| Win32::OLE->new('Outlook.Application', sub {$_[0]->Quit;});
my $namespace = $outlook->GetNamespace("MAPI");
my
Well, in a meantime I've found something interesting...
Take a look at:
http://oe5dbx.Aroh.de/
Now, I will try to do it in Perl. Any help is welcome.
Veljko
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveSta
Dirk,
If you really want a general solution to get rid of initial zeros without
affecting the remainder of the string, then I stand corrected; a regex would
probably be best. Consider my high horse bruised, following an incident with
a low bridge :-)
One last try though before my horse is retire
In my instance, the 0+ solution would not produce the results I desire. For example,
imagine the input string is "000.00" as in
a dollar amount. The result I desire is "0.00", while the 0+ method results in "0".
The regex that Joe provided produced my desired
result, while the 0+ maybe usefu
How to determine Users connected to IIS on WinNT?
Mark:
I am afraid that would not work, because the LOGON_USER under the
ServerVariables collection would work only for the current context that page
was invoked. The question is not that. The question is to find out the
logged in users of all webs
[EMAIL PROTECTED] wrote, on Tuesday, February 12, 2002 12:36 PM
: Why not just use 0+$_ and let perl work its magic. I challenge any of you
: regex "pushers" out there to write a regex that beats this in either speed
: or elegance.
Oh, of course. Duh. I had blinders on from the OP's subject line.
24 matches
Mail list logo