w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How do I install Catalyst::Plugin::Session?

Perl modules are installed with a CPAN client, usually cpan or cpanm. For example:

$ cpan
<whole lot of initial conf questions>
cpan[1]> install Catalyst::Plugin::Session
<whole lot of installing>
cpan[2]> exit
$

Google 'install Perl modules with CPAN'. But these modules are almost certainly already installed if Catalyst is.

On the other hand, if you're asking how to configure your application to use this plugin, you simply add it to your list of plugins in your main program, eg:

package MyApp;

use strict;
use warnings;

use Catalyst qw(
        Session
        Session::Store::FastMmap
        Session::State::Cookie
        ...
        );

This is covered at some length in the very fine Catalyst Tutorials.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.