Re: sum a column

2004-10-05 Thread Denzil Kruse
--- "JupiterHost.Net" <[EMAIL PROTECTED]> wrote: > > Isn't $prev_date assigned to '', and isn't that > > It is if you do > my $prev_date = ''; > but > my $prev_date; > it is "uninitialized" as in it hasn't been assigned > any value incuding > "empty" > > Compare > perl -mstrict -we 'my $

RE: sum a column

2004-10-05 Thread Denzil Kruse
--- "Charles K. Clarkson" <[EMAIL PROTECTED]> wrote: [snip] > > my $prev_date; > if ( $prev_date ne 'foo' ) {## LINE 28 ## > print 'foo'; > } > > Since prev_date does not have value, it cannot > be compared > without raising a warning. On the second pass > $prev_date has > a value.

Re: Removing many files and subdirectories under a folrder

2004-10-04 Thread Denzil Kruse
Not a perl master, but can't you just do a: system("rm -r "); Is that what you mean? Denzil --- John <[EMAIL PROTECTED]> wrote: > can the above be done with one perl function? ___ Do you Yahoo!? Declare Yourself - Register online to vote today! h

Re: Check for valid email address

2004-09-30 Thread Denzil Kruse
--- Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > I had a look at the source of Mail::Verify, and even > if the module > claims to verify the syntax, it doesn't really. You > may want to check > out e.g. Email::Valid, too. I already know the email is works because we've sent them before, so I'

Re: Check for valid email address

2004-09-30 Thread Denzil Kruse
Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: >I'd say: Forget it. You can't find out whether >an email address is deliverable without asking >the mail server of that address, i.e. >trying to send a message. What you can do is >testing if the domain/host has an MX record. >And you can of cour

Check for valid email address

2004-09-30 Thread Denzil Kruse
Hi all, I have a bunch of old email addresses in a database and would like to make sure they are deliverable before I try to send anything to them. I don't need to find each and every bad one, just find most of them. Or at least reduce the undeliverables to a more managable level. I read t