Re: How to tell if an array is empty?

2006-03-24 Thread David Nicol
On 3/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Dear list, > > I've got this code: > > # now grab sub_domains, if there are any > my @sub_domains = keys( %{ $HKU->{$full_domain} } ); > > # if there are sub-domains, we don't want the parent in the list > if ($#sub_domains >= 0) { >

How to tell if an array is empty?

2006-03-24 Thread Deane . Rothenmaier
___ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

How to tell if an array is empty?

2006-03-24 Thread Deane . Rothenmaier
Dear list, I've got this code: # now grab sub_domains, if there are any my @sub_domains = keys( %{ $HKU->{$full_domain} } ); # if there are sub-domains, we don't want the parent in the list if ($#sub_domains >= 0) {     pop( @ret_ary ); } Where @ret_ary contains URL info gathered using functio

RE: threaded TCP-server problem

2006-03-24 Thread Brian Raven
cee flee <> wrote: > I got the programming running, the error was indeed a wrong > thread-call. This works: > > $thr = threads->new(\&process_request, $client); Great. > > My second question is about the termination of threads. > Right now the application grows at an alarming rate. That can h

Re: threaded TCP-server problem

2006-03-24 Thread cee flee
I got the programming running, the error was indeed a wrong thread-call. This works: $thr = threads->new(\&process_request, $client); My second question is about the termination of threads. Right now the application grows at an alarming rate. Any suggestions? -- __

Experience of using Perl with Quick Address Software

2006-03-24 Thread Mark Knoop
Hi I know this doesn't fit the proper posting guidelines but it is more a general 'what are you thoughts' rather than a question regarding a specific problem so I hope its ok. I am planning to use the Quick Address Nearest software to do postcode lookups. There is a C API and from what I know it

RE: how to install template toolkit

2006-03-24 Thread Hicks, Robert
ppm> rep add theoryx http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer58 ppm> install Template-Toolkit   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of yin_xiaofeng Sent: Thursday, March 23, 2006 7:30 PM To: activeperl Subject: how to install templat

RE: threaded TCP-server problem

2006-03-24 Thread Brian Raven
cee flee <> wrote: > Hello, > > I have a problem using a threaded TCP-server. Clients connect to send > a short message. This message is then processed. This processing can > take some time (seconds). Writing such a server for Linux is easy, > but Windows is different. I tried several examples and

Re: threaded TCP-server problem

2006-03-24 Thread Williamawalters
In a message dated 3/23/2006 2:29:26 P.M. Eastern Standard Time, [EMAIL PROTECTED] writes:   > Hello,> > I have a problem using a threaded TCP-server. Clients connect to> send a short message. This message is then processed. This processing > can take some time (seconds). Writing such a serv

Re: threaded TCP-server problem

2006-03-24 Thread cee flee
> Is it threads->new, or threads->create? I know new() aliases to > create(), but why not give it a short? You are right, I used a Thread method. Unfortunately it does solve my problem. -- ___ Surf the Web in a faster, safer and easier way: Downloa