RE: GetOpt::Long

2005-04-21 Thread Olivier, Wim W
NTsendmail; $mail-send($sender, $recipient, $subject, $body); } } == -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: 20 April 2005 02:31 PM To: Olivier, Wim W; Perl

RE: GetOpt::Long

2005-04-21 Thread Olivier, Wim W
Hi Bob, You gave me the following answer earlier: sub foo { local @ARGV = @_; GetOptions(...blah...); ... } If I run it as a seperate script, commenting out the (local @ARGV = @_;) line, then it works. But it does not work when called as a subroutine from within the

GetOpt::Long

2005-04-20 Thread Olivier, Wim W
Hi all, Is it possible to use GetOpt::Long (or something similar) in a subroutine using @_ instead of in the standard way (using @ARGV)? I want to have the following scenario, but use GetOpt in a subrouting within the main script and pass options (and values) to the subroutine. The values

Can't understand error

2005-04-07 Thread Olivier, Wim W
Hi all, I get an error running this script on Win32 , but when I execute the actual command it works 100%. Does anyone see my problem here? The error I get is: Error: Invalid message text. The debugger goes through fine, but complains at the 'system()' line. notify_jcc(user, err, THIS IS A

Question: Array of Hashes

2005-03-31 Thread Olivier, Wim W
Hi all, I have the following code below which I need to modify a bit. The script currently lists the key/value pairs for all processes in the system. What I need to achieve is for it to only list the key/value pairs for processes of which the Description key is of a certain ASCII value, say

RE: Question: Array of Hashes

2005-03-31 Thread Olivier, Wim W
Thanks Offer! It's working! Wim -Original Message- From: Offer Kaye [mailto:[EMAIL PROTECTED] Sent: 31 March 2005 02:55 PM To: Perl Beginners Subject: Re: Question: Array of Hashes On Thu, 31 Mar 2005 14:40:47 +0200, Olivier, Wim W wrote: Hi all, I have the following code below