Hi,
I have resolved my problem but now i have a problem with cookies. Cookies were working fine with cgi app.
Can i continue using my cookie handler or do i have to use plack cookies routines?.
Thank you in advance for your response.
Here my actual program:
#!/home/laran/eplsite/Perl64/bin/perl -X
use Plack::App::WrapCGI;
use Plack::Builder;
my $PATH_INFO_TEMP = $ENV{PATH_INFO};
$PATH_INFO_TEMP =~ s/^\s+//; #remove leading spaces
$PATH_INFO_TEMP =~ s/\s+$//; #remove trailing spaces
$PATH_INFO_TEMP =~ s/\///; #remove slashes
if( $PATH_INFO_TEMP eq "" )
{
$ENV{'PATH_INFO'} = "index.prc";
}
my @called_document_data = split('\.',$ENV{PATH_INFO});
my $app = Plack::App::WrapCGI->new(script => "./cgi-bin/hypertextperl.pl", execute => 1)->to_app;
builder {
enable "Plack::Middleware::Static",
path => qr{/(images|includes|skins|modules|Docs)/}, root => './html';
$app;
};