File: TestMultipath.pm

package info (click to toggle)
libcatalyst-perl 5.90132-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,016 kB
  • sloc: perl: 11,061; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 374 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package TestApp::Controller::Action::TestMultipath;

use strict;
use base 'TestApp::Controller::Action';

__PACKAGE__->config(
  namespace => 'action/multipath'
);

sub multipath : Local : Global : Path('/multipath1') : Path('multipath2') {
    my ( $self, $c ) = @_;
    for my $line ( split "\n", <<'EOF' ) {
foo
bar
baz
EOF
        $c->res->write("$line\n");
    }
}

1;