Raful Mr Mitchell H wrote:
Here is the complete script....

Is this the script that was causing segfaults? It doesn't look anything like what you originally posted.

#!/usr/bin/perl
package Handlers::Devices;
use DBI;
use HTML::Template;

use Apache2::RequestRec ();
use APR::Request::Param ();
use Apache2::Const -compile => 'OK';

sub handler {
   my $r = shift;
   my $req = $r->param("chosen_base");

We usually reserve $req for an Apache2::Request object, instantiated as follows.

my $req = Apache2::Request->new($r);

Then, $req provides CGI parameters...

my $username = $req->param('username');

[snipped the rest]

Does that help?

Colin

Reply via email to