HI Again,
I'm making an effort to move a Perl application PREVIOUSLY leveraging Mason
on Apache 1.3 (w/ statically linked modules), and Perl version 5.8.5 to
Apache 2 (DSO) / Perl 5.10.1 ( i realize that is not the current version,
but it is what we have bench-marked from Redhat as a "supportable version"
on RHEL 6.7). I've gotten the application over and started, but there is a
a error that I'm having issue with. Wondering if anyone can help me. This
code appears to generate the following:
Can't call method "bake" on an undefined value at
/opt/cloudhost/apache/www/dworks/lib/DWorks/User.pm line 234, <> line
1.
# Currently, we're storing our user state in cookies.
Apache2::Cookie->new(
$m->apache_req,
name => $name,
value => $value,
expires => ($expires || ''), # Default: when browser is closed.
path => '/',
secure => ($data->{cookie}->{secure} ? 1 : 0),
)->bake;
User.pm line 234 is the bake->
I don't understand what needs to be updated. based on the cpan docs
for Apache2::Cookie, this appears to be valid.
I've tried
)->bake();
and
)->bake($m);
but that yields the same result (error message)
Should I be using CGI::Cookie for Apache2::Cookie:Jar instead?
I'm not sure how this part works $m->apache_req though.
Hope to hear from someone. Thanks!
On Thu, Mar 24, 2016 at 12:25 PM, Hiram Gibbard <hgibb...@gmail.com> wrote:
> I've been tasked to migrate a application which uses Perl/Mmason to serve
> an application and I'm migrating the app to more current OS and Apache
> software. In the sense of the migration, and easiest path, should I stick
> with Mason, or would it be better for me to leverage Mason2 for this effort?
>
>
> --
> hgibb...@gmail.com
>
>
>
--
Hiram Gibbard
hgibb...@gmail.com
http://hiramgibbard.com
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users