Re: Connection pooling implementation in perl

2009-11-25 Thread Jeff Pang
Hi, If you're running a webprom under mod_perl, then Apache::DBI is maybe what you wanted. On Nov 26, 2009, Praveena Vittal wrote: Hi All, We would like to implement connection pooling for mysql database in Perl. Can anyone help in this? -- To unsubscribe, e-mail: beginners-unsubscr

Connection pooling implementation in perl

2009-11-25 Thread Praveena Vittal
Hi All, We would like to implement connection pooling for mysql database in Perl. Can anyone help in this? Regards, Praveena -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: loading GD module on Solaris

2009-11-25 Thread Paul Johnson
On Wed, Nov 25, 2009 at 03:41:27PM -0600, Aimee Cardenas wrote: > Hi, All, > > I keep running into problems trying to load the GD perl module > (http://search.cpan.org/~lds/GD-2.44/) onto a Solaris system (spac Sun > Blade 2500). Does anyone know if it's just not feasible? The GD README > men

Re: How to toggle a variable with each iteration?

2009-11-25 Thread Jim Gibson
On 11/25/09 Wed Nov 25, 2009 2:14 AM, "kusuma ramaswamy" scribbled: > Hello, I am new to perl. I would like to know how to toggle a variable with > each iteration in a loop ?? while( ... ) { $variable = ! $variable; } Does that do what you want? -- To unsubscribe, e-mail: beginners-u

loading GD module on Solaris

2009-11-25 Thread Aimee Cardenas
Hi, All, I keep running into problems trying to load the GD perl module (http://search.cpan.org/~lds/GD-2.44/ ) onto a Solaris system (spac Sun Blade 2500). Does anyone know if it's just not feasible? The GD README mentions Mac OS X and Linux and even Windows but not Solaris. The problems

Re: Code issue with perl5.10

2009-11-25 Thread Steve Bertrand
Paul Johnson wrote: > On Wed, Nov 25, 2009 at 02:16:51PM -0500, Steve Bertrand wrote: > >> Hi all, >> >> I just upgraded from perl 5.8 to perl 5.10.1. Everything went well, >> except for a single module that I need. >> >> The offending code is this: >> >> ${$self->{__pb_template_list}}[...@{$self-

Re: Code issue with perl5.10

2009-11-25 Thread Paul Johnson
On Wed, Nov 25, 2009 at 02:16:51PM -0500, Steve Bertrand wrote: > Hi all, > > I just upgraded from perl 5.8 to perl 5.10.1. Everything went well, > except for a single module that I need. > > The offending code is this: > > ${$self->{__pb_template_list}}[...@{$self->{__PB__TEMPLATE_LIST}}}]->pa

Re: Code issue with perl5.10

2009-11-25 Thread Philip Potter
2009/11/25 Steve Bertrand : > Steve Bertrand wrote: >> Hi all, >> >> I just upgraded from perl 5.8 to perl 5.10.1. Everything went well, >> except for a single module that I need. >> >> The offending code is this: >> >> ${$self->{__pb_template_list}}[...@{$self->{__PB__TEMPLATE_LIST}}}]->param( >>

Re: Code issue with perl5.10

2009-11-25 Thread Dermot
2009/11/25 Steve Bertrand : >> >> ${$self->{__pb_template_list}}[...@{$self->{__PB__TEMPLATE_LIST}}}]->param( >> $param, $value ); >> >> As I understand it, $# has been deprecated in 5.10. Ouch! Really. That's a shame. Can someone please >> help me understand the above line of code? What does $#

Re: How to toggle a variable with each iteration?

2009-11-25 Thread Dermot
2009/11/25 kusuma ramaswamy : > Hello, I am new to perl. I would like to know how to toggle a variable with > each iteration in a loop ?? Hi, I'm not entirely sure that I understand your requirements but this might get you started. You want to scope your variables with the keyword `my`, so #!/p

Re: Code issue with perl5.10

2009-11-25 Thread Steve Bertrand
Steve Bertrand wrote: > Hi all, > > I just upgraded from perl 5.8 to perl 5.10.1. Everything went well, > except for a single module that I need. > > The offending code is this: > > ${$self->{__pb_template_list}}[...@{$self->{__PB__TEMPLATE_LIST}}}]->param( > $param, $value ); > > As I understa

How to toggle a variable with each iteration?

2009-11-25 Thread kusuma ramaswamy
Hello, I am new to perl. I would like to know how to toggle a variable with each iteration in a loop ?? Regards, suma

Re: why can't I collapse reference variable?

2009-11-25 Thread Uri Guttman
> "MG" == Mark Galeck writes: MG> If I can do this: MG> $ref = \...@foobar; MG> print @$ref; MG> then why can't I do this: MG> print @\...@foobar; you can. but why do you want that? the answer is you need to use {} around the reference. you can only use a plain sigil before a sca

Code issue with perl5.10

2009-11-25 Thread Steve Bertrand
Hi all, I just upgraded from perl 5.8 to perl 5.10.1. Everything went well, except for a single module that I need. The offending code is this: ${$self->{__pb_template_list}}[...@{$self->{__PB__TEMPLATE_LIST}}}]->param( $param, $value ); As I understand it, $# has been deprecated in 5.10. Can s

Re: how to write a debug-print sub with one argument?

2009-11-25 Thread Rene Schickbauer
Mark_Galeck wrote: Hello, I want to write a simple debug-print subroutine, which you could call like this: $foobar = "foobar"; dbgPrint foobar; You could use a source code filter to rewrite dbgPrint $foobar; into dbgPrint('$foobar', $foobar); So you sub would be like sub dbgPrint($$) {

Re: a match question

2009-11-25 Thread Shawn H Corey
Orchid Fairy (兰花仙子) wrote: > On Wed, Nov 25, 2009 at 11:06 AM, John W. Krahn wrote: > >> $ perl -le '$_="aXXXb"; print "one word is $1 at $-[0] to $+[0]" while >> /(X*)/g;' >> one word is at 0 to 0 >> one word is XXX at 1 to 4 >> one word is at 4 to 4 >> one word is at 5 to 5 >> > > Thanks th

Problems in POSIX

2009-11-25 Thread Raheel Hassan
Hello, I am unable to understand the use of these statements in the program, I have read about POSIX in the CPAN but still things are not clear to me. use POSIX ":sys_wait_h"; #What sys_wait_h does? waitpid($_,&WNOHANG) # what is WNOHANG? my $message = $object -> receive($id,$length,"IPC_NOWAI

Re: Out of Memory error with large Oracle DB extraction

2009-11-25 Thread Rene Schickbauer
Hi! I've done a lot of DBD::Oracle programming for over 10 years and never met a situation where I needed to do that. I can safely say that your program will be better off for using some sort of while ( ...->fetch ) loop. I also use DBD::Oracle in one of my projects (ActivePerl 5.10). I get

Re: a match question

2009-11-25 Thread C.DeRykus
On Nov 24, 7:06 pm, jwkr...@shaw.ca (John W. Krahn) wrote: > ... > > 1. before the a > > 2. between the a and b > > 3. before the b > > 4. after the b > > > The problem is that the third one should not be there. > > Yes it should.  Perhaps you are confused because pos() reports the > current positi

Re: a match question

2009-11-25 Thread Majian
Orchid Fairy (兰花仙子) wrote: > On Wed, Nov 25, 2009 at 11:06 AM, John W. Krahn wrote: > > >> $ perl -le '$_="aXXXb"; print "one word is $1 at $-[0] to $+[0]" while >> /(X*)/g;' >> one word is at 0 to 0 >> one word is XXX at 1 to 4 >> one word is at 4 to 4 >> one word is at 5 to 5 >> >> >

why can't I collapse reference variable?

2009-11-25 Thread Mark_Galeck
If I can do this: $ref = \...@foobar; print @$ref; then why can't I do this: print @\...@foobar; Thank you for your help! Mark -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: A Revised Logo for Perl

2009-11-25 Thread Rene Schickbauer
M. E8. H. wrote: This is an minor topic. I feel the Camel logo to represent Perl to be strange, illogical and slightly ugly. The ways of project logos are strange and mysterious. For example, earlier this year i wrote the software for a system called the "Rapid Booking System" (never had a