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
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
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
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
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
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
On Thu, 2002-03-14 at 10:46, [EMAIL PROTECTED] wrote:
code:
| return %Actions::Vars::config{$conf}; |