Re: Persistant references [was] Persistent Net::Telnet Objects

2002-05-29 Thread Garth Winter Webb
You could just pass around a string rather than a subref: my $handler = 'sub { my $arg = @_; do_something(); }'; vs my $handler = sub { my $arg = @_; do_something(); }; When you want to call it later on you do it like: eval($handler)-('foo'); vs $handler-('foo'); Garth On

Re: error_log contents

2002-05-18 Thread Garth Winter Webb
Type this: $ perl -de 1 And tell me if it looks familiar to you. Looks like somehow, somewhere, the debugging flag is being set... G On Sat, 2002-05-18 at 14:11, Gregory Matthews wrote: I am getting the following repeating code in my error log in doing some testing on my script: DB1

Re: How to get two perl namespaces in apache

2002-03-28 Thread Garth Winter Webb
You just need to fire up two separate apaches, each with their own conf. So basically you have: /usr/local/apache_prod /usr/local/apache_dev These can actually share the same bin and lib directories; everything is still installed at '/usr/local/apache' and you symlink the directories you want

Re: Can't open perl script -spi.bak

2002-03-22 Thread Garth Winter Webb
On Fri, 2002-03-22 at 12:57, Robert Landrum wrote: That's is very weird, because this code doesn't seem to work: perl -e 'system(perl, -e1) == 0 or die oops' Actually, that's not all that weird. Most shells take care of stripping out garbage before setting the argument list. Since

Re: Subroutines taking time to return..

2002-03-20 Thread Garth Winter Webb
Have you tried using Apache::DProf? Using this is a lot easier than trying to add tons of debug messages. If you haven't used it or the regular DProf, it does what your doing automatically. It generates a file of data that you run 'dprofpp' on and you can get a list of the top 10 or so most

Re: [OT][ANNOUNCE] The New mod_perl logo - results now in...

2002-03-16 Thread Garth Winter Webb
On Sat, 2002-03-16 at 08:01, [EMAIL PROTECTED] wrote: Recently I had a discussion with a Java programmer, who said that mod_perl is a try to save the obsolete language Perl. His argument was that only Java programmers are searched, especially here in Europe. Interesting. I have a friend

Re: problems returning a hash of hashes using mod_perl

2002-03-14 Thread Garth Winter Webb
On Thu, 2002-03-14 at 10:46, [EMAIL PROTECTED] wrote: code: | return %Actions::Vars::config{$conf}; |