develooper Front page | perl.module-authors | Postings from January 2010

Strange problem with modperl

From:
Xavier Guimard
Date:
January 28, 2010 12:52
Subject:
Strange problem with modperl
Message ID:
4B61F8D6.3090502@laposte.net
Hi all,

I've a strange problem with modperl (mpm_worker), this causes segfault:

my $cgi=CGI->new();
display();
sub display{
  my $t=HTML::Template->new(...);
  print $cgi->header();
  print $t->ouput();
}

But this work :

my $cgi=CGI->new();
display($cgi);
sub display{
  my $cgi=shift;
  my $t=HTML::Template->new(...);
  print $cgi->header();
  print $t->ouput();
}

Any idea ?



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About