The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Доброго всем

Mojolicious::Plugin::Helper::Vars

¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !

NAME

Mojolicious::Plugin::Helper::Vars - Stash & every_params to one var named.

SINOPSYS

    $app->plugin('Helper::Vars');
    
    # controller
    $c->param('foo'=>[1,2,3]);
    $foo = $c->vars('foo'); # 1
    
    $c->stash('foo'=>['undef']);
    $c->stash('Foo'=>5);
    @foo = $c->vars('foo', 'Foo'); # (1,2,3,undef,5)
    
    

OPTIONS

  • helper

    Name of the helper. Default - 'vars'.

    Возвращает объединенный список stash & every_param и в скалярном контексте первое из определенных. String value 'undef' convert to undef.

SEE ALSO

Mojolicious::Plugin::ParamExpand

AUTHOR

Михаил Че (Mikhail Che), <mche [on] cpan.org>