File: Root.pm

package info (click to toggle)
libcatalyst-plugin-session-store-fastmmap-perl 0.16-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 96 kB
  • sloc: perl: 93; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/perl

package SessionStoreTest::Controller::Root;
use strict;
use warnings;
use base 'Catalyst::Controller';

sub store_scalar : Global {
    my ( $self, $c ) = @_;

    $c->res->body( $c->session->{'scalar'} = 456 );
}

sub get_scalar : Global {
    my ( $self, $c ) = @_;

    $c->res->body( $c->session->{'scalar'} );
}

1;