Re: Most effecient way to send mail to multiple users

2002-02-02 Thread Eric Pretorious
On Fri, 1 Feb 2002, Jones, Mark wrote: > I want my members area script to provide the capability of sending > email to every address in the MySQL database--say 1000 addresses. > I'm planning to just write a loop that reads each record and sends the > email to the address. Or, is there a way tha

Re: What modulo recomended for send emails?

2002-02-02 Thread Eric Pretorious
On Thu, 31 Jan 2002, Argenis Perez wrote: > Hi friends > Please What modulo recomended for send emails that i can attachment a > file. > Thanx Argenis: For sending mail with MIME attachments, I recommend MIME::Lite. There's even a good article on The Perl Journal describing how to use it: ht

Re: validation

2002-02-02 Thread Briac Pilpré
On Sat, 2 Feb 2002 13:05:30 -0500, Al Hospers <[EMAIL PROTECTED]> wrote: > I'm surprised that no one has put together a library of functions to > handle form validation issues. it would seem that this is one of those > things that needs to be done all the time. Have you looked for one? http://s

RE: validation

2002-02-02 Thread Al Hospers
thanks to everyone who responded. it seems that Bob's /^\d+$/ works the best overall for this situation. I have a lot to learn about Perl & regex. I'm surprised that no one has put together a library of functions to handle form validation issues. it would seem that this is one of those things t

RE: validation

2002-02-02 Thread Bob Showalter
> -Original Message- > From: Al Hospers [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 01, 2002 8:14 PM > To: [EMAIL PROTECTED] > Subject: validation > > > I need a regular expression that will only allow a variable to contain > digits. it should fail if there is anything else in th

Re: validation

2002-02-02 Thread Brett W. McCoy
On Sat, 2 Feb 2002, Brett W. McCoy wrote: > > return 1 unless ($Bid_Amount =~ [/d/] ); > > Your regular expression should be /[0-9]/ Or rather, /\D/ if you are matching against non-numerical values. -- Brett http://www.chapelperilous.net/ -

Re: validation

2002-02-02 Thread Brett W. McCoy
On Fri, 1 Feb 2002, Al Hospers wrote: > I need a regular expression that will only allow a variable to contain > digits. it should fail if there is anything else in the variable: > dollar signs, commas, dots, alphas, spaces, quotes etc. I thought the > following would work, I am obviously incorre

Re: doing work on the side

2002-02-02 Thread Jeff Bisbee
* Jeff Bisbee ([EMAIL PROTECTED]) wrote: > You're dealing with the web server timeout and nothing that has to do > with Perl. Even if you fork, you'll have the same problem. We upload > some pretty bigs files here at work and we just bumped up Apache's > timeout and we were cool... opps I toug

RE: validation

2002-02-02 Thread Al Hospers
> if you're trying to return 'true' unless $Bid_Amount contains a > non-digit, try this: > > return 1 unless $Bid_Amount =~ /\D/; that works great. now I need to make sure that there are no embeded spaces. it does return TRUE if there is one or more spaces in there. I do know how to strip the lea

Re: validation

2002-02-02 Thread fliptop
Al Hospers wrote: > I need a regular expression that will only allow a variable to contain > digits. it should fail if there is anything else in the variable: > dollar signs, commas, dots, alphas, spaces, quotes etc. I thought the > following would work, I am obviously incorrect. > > return 1 u

Re: Yesterday-How obtain?

2002-02-02 Thread Dave Cross
On Sat, 02 Feb 2002 01:00:13 +, Fliptop wrote: > Argenis Perez wrote: > >> this statement >> ($sec,$min,$hour,$mon,$year,$wday,$yday,$isdst) = localtime(); i obtain >> the date of today, but i need the $day,$mon,$year of yesterday > > > look into the date::calc module. it's very handy for