From Wim.Olivier at standardbank.co.za Mon Apr 11 04:14:27 2005 From: Wim.Olivier at standardbank.co.za (Olivier, Wim W) Date: Mon Apr 11 04:14:48 2005 Subject: [Za-pm] anyone there? Message-ID: Hi, I see the website for this group has last been updated a LONG time ago. Is there any activity at all on the list? Please respond, as I wish to get involved in the ZA pm group, meetings, etc. Kind Regards, Wim Olivier __________________________________________________________________________________________________________________________________ Standard Bank Disclaimer and Confidentiality Note This e-mail, its attachments and any rights attaching hereto are, unless the context clearly indicates otherwise, the property of Standard Bank Group Limited and/or its subsidiaries ("the Group"). It is confidential, private and intended for the addressee only. Should you not be the addressee and receive this e-mail by mistake, kindly notify the sender, and delete this e-mail, immediately and do not disclose or use same in any manner whatsoever. Views and opinions expressed in this e-mail are those of the sender unless clearly stated as those of the Group. The Group accepts no liability whatsoever for any loss or damages whatsoever and howsoever incurred, or suffered, resulting, or arising, from the use of this email or its attachments. The Group does not warrant the integrity of this e-mail nor that it is free of errors, viruses, interception or interference. Licensed divisions of the Standard Bank Group are authorised financial services providers in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002 (FAIS). For information about the Standard Bank Group Limited visit our website http://www.standardbank.co.za ___________________________________________________________________________________________________________________________________ From tvilliers at Lastminute.com Mon Apr 11 04:26:55 2005 From: tvilliers at Lastminute.com (Tielman De Villiers) Date: Mon Apr 11 04:26:53 2005 Subject: [Za-pm] anyone there? Message-ID: <1113218815.25053.25.camel@localhost.localdomain> There are about one or two postings per month ... --tielman On Mon, 2005-04-11 at 12:14 +0100, Olivier, Wim W wrote: > I see the website for this group has last been updated a LONG time > ago. > Is there any activity at all on the list? Please respond, as I wish > to get > involved in the ZA pm group, meetings, etc. > > ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From Wim.Olivier at standardbank.co.za Mon Apr 11 04:30:42 2005 From: Wim.Olivier at standardbank.co.za (Olivier, Wim W) Date: Mon Apr 11 04:31:09 2005 Subject: [Za-pm] anyone there? Message-ID: Geez... How big is the Perl community in SA then? Is there then someplace else where all ZA Perl developers communicate, or another website other than za.pm.org? Regards, Wim -----Original Message----- From: Tielman De Villiers [mailto:tvilliers@Lastminute.com] Sent: 11 April 2005 01:27 PM To: Olivier, Wim W Cc: za-pm@pm.org Subject: Re: [Za-pm] anyone there? There are about one or two postings per month ... --tielman On Mon, 2005-04-11 at 12:14 +0100, Olivier, Wim W wrote: > I see the website for this group has last been updated a LONG time > ago. > Is there any activity at all on the list? Please respond, as I wish > to get > involved in the ZA pm group, meetings, etc. > > ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** __________________________________________________________________________________________________________________________________ Standard Bank Disclaimer and Confidentiality Note This e-mail, its attachments and any rights attaching hereto are, unless the context clearly indicates otherwise, the property of Standard Bank Group Limited and/or its subsidiaries ("the Group"). It is confidential, private and intended for the addressee only. Should you not be the addressee and receive this e-mail by mistake, kindly notify the sender, and delete this e-mail, immediately and do not disclose or use same in any manner whatsoever. Views and opinions expressed in this e-mail are those of the sender unless clearly stated as those of the Group. The Group accepts no liability whatsoever for any loss or damages whatsoever and howsoever incurred, or suffered, resulting, or arising, from the use of this email or its attachments. The Group does not warrant the integrity of this e-mail nor that it is free of errors, viruses, interception or interference. Licensed divisions of the Standard Bank Group are authorised financial services providers in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002 (FAIS). For information about the Standard Bank Group Limited visit our website http://www.standardbank.co.za ___________________________________________________________________________________________________________________________________ From spikeh at mweb.co.za Mon Apr 11 04:37:51 2005 From: spikeh at mweb.co.za (Spike) Date: Mon Apr 11 04:38:21 2005 Subject: [Za-pm] anyone there? In-Reply-To: <1113218815.25053.25.camel@localhost.localdomain> References: <1113218815.25053.25.camel@localhost.localdomain> Message-ID: <6.2.1.2.2.20050411133641.0248a118@pop3.mweb.co.za> We tend to only communicate when one of us is stuck with something ..... and we are so good that don't happen too often! ;-) At 2005/04/11 13:26, Tielman De Villiers wrote: >There are about one or two postings per month ... > >--tielman > > >On Mon, 2005-04-11 at 12:14 +0100, Olivier, Wim W wrote: > > > I see the website for this group has last been updated a LONG time > > ago. > > Is there any activity at all on the list? Please respond, as I wish > > to get > > involved in the ZA pm group, meetings, etc. > > > > > > > >********************************************************************** >This email and any files transmitted with it are confidential and >intended solely for the use of the individual or entity to whom they >are addressed. If you have received this email in error please notify >the system manager. > >This footnote also confirms that this email message has been swept by >MIMEsweeper for the presence of computer viruses. > >www.mimesweeper.com >********************************************************************** > >_______________________________________________ >Za-pm mailing list >Za-pm@pm.org >http://mail.pm.org/mailman/listinfo/za-pm From tvilliers at Lastminute.com Mon Apr 11 04:46:58 2005 From: tvilliers at Lastminute.com (Tielman De Villiers) Date: Mon Apr 11 04:46:56 2005 Subject: [Za-pm] anyone there? Message-ID: <1113220018.25053.39.camel@localhost.localdomain> On Mon, 2005-04-11 at 12:30 +0100, Olivier, Wim W wrote: > Geez... How big is the Perl community in SA then? Is there then > someplace > else where all ZA Perl developers communicate, or another website > other than > za.pm.org? > > I have no idea, but would be interested to know though! OTOH the Perl job market in London is quite healthy :-) ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From Wim.Olivier at standardbank.co.za Thu Apr 21 02:26:00 2005 From: Wim.Olivier at standardbank.co.za (Olivier, Wim W) Date: Thu Apr 21 02:26:23 2005 Subject: [Za-pm] GetOpt::Long problem Message-ID: Hi guys, Can anyone assist and see the problem I've got here please? I used the method below (local @ARGV = @_;) to get the values of @_ into @ARGV for the use of Getopt::Long. It appears to be working fine like that. I now have another problem with, it appears, syntax. The IF statement is part of a block in the switch statement, but there is nothing wrong with the switch statement itself, as there are many identical if statements there. If I comment out this if statement, I don't get the error anymore. An clues as to the correct syntax??? I run the subroutine as follows: if ($conf{'check_email'} =~ 'ON') { notify_email -r Wim.Olivier@standardbank.co.za -r testuser@standardbank.co.za -s "Subject line" -b "Message body" }; But I get the following error when it executes: Bad switch statement (problem in the code block?) Please see the code below: ============================================================================ # Notify recipients via SMTP (email) # Usage: notify_email -r user1@a.com -r user2@b.com -s "Subject line" -b "Message body" sub notify_email { local @ARGV = @_; # Get the sub's params into the master param array for GetOpt::Long $ENV{"NTsendmail"} = $conf{'smtp'}; $sender = $conf{'smtpsender'}; my @recipients; my @subject; my $body; GetOptions ("r=s" => \@recipients, # -r user1@a.com -r user2@b.com -r user3@c.com "s=s" => $subject, # -s "This is the subject line..." "b=s" => $body); # -b "This is the message body..." #@recipients = split(/,/,join(',',@recipients)); #$subject = join(" ", @subject); #$body = join(" ", @body); foreach $recipient (@recipients) { print "$sender, $recipient, $subject, $body\n"; $mail = new NTsendmail; $mail->send($sender, $recipient, $subject, $body); } } ============================================================================ __________________________________________________________________________________________________________________________________ Standard Bank Disclaimer and Confidentiality Note This e-mail, its attachments and any rights attaching hereto are, unless the context clearly indicates otherwise, the property of Standard Bank Group Limited and/or its subsidiaries ("the Group"). It is confidential, private and intended for the addressee only. Should you not be the addressee and receive this e-mail by mistake, kindly notify the sender, and delete this e-mail, immediately and do not disclose or use same in any manner whatsoever. Views and opinions expressed in this e-mail are those of the sender unless clearly stated as those of the Group. The Group accepts no liability whatsoever for any loss or damages whatsoever and howsoever incurred, or suffered, resulting, or arising, from the use of this email or its attachments. The Group does not warrant the integrity of this e-mail nor that it is free of errors, viruses, interception or interference. Licensed divisions of the Standard Bank Group are authorised financial services providers in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002 (FAIS). For information about the Standard Bank Group Limited visit our website http://www.standardbank.co.za ___________________________________________________________________________________________________________________________________ From jkeen at verizon.net Thu Apr 21 05:44:28 2005 From: jkeen at verizon.net (Jim Keenan) Date: Thu Apr 21 05:44:42 2005 Subject: [Za-pm] GetOpt::Long problem Message-ID: <6722974.1114087468567.JavaMail.root@vms068.mailsrvcs.net> >From: "Olivier, Wim W" >Date: Thu Apr 21 04:26:00 CDT 2005 >To: "'za-pm@pm.org'" >Subject: [Za-pm] GetOpt::Long problem >Hi guys, > >Can anyone assist and see the problem I've got here please? > > >I used the method below (local @ARGV = @_;) to get the values of @_ into >@ARGV for the use of Getopt::Long. It appears to be working fine like that. At the risk of being accused of not answering your question, I feel compelled to ask: Why are you taking such an unnecessarily convoluted approach to passing arguments to a subroutine? Instead of: notify_email -r user1@a.com -r user2@b.com -s "Subject line" -b "Message body" ... why can't you use a single hash reference like this: @recipients = qw| user1@a.com user2@b.com |; notify_email( { recipients => \@recipients, subject => "Subject line", body => "Message body", } ); IMHO, it's a much cleaner interface. It dispenses with the need for the Getopts module. And because with hashes (unlike arrays or Getopts), you don't have to worry about the *order* in which arguments are passed to a subroutine, this interface can flexibly handle future modifications. Just add an additional element to the anonymous hash. HTH Jim Keenan