I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2012-07-04 15:59:35.146124-07 by laranikal in response to 13741
Re: Running a cgi wep portal using plack
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; };
Direct Responses: Write a response