Доброго всем
¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !
Mojolicious::Plugin::Helper::Vars - Stash & every_params to one var named.
$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)
helper
Name of the helper. Default - 'vars'.
Возвращает объединенный список stash & every_param и в скалярном контексте первое из определенных. String value 'undef' convert to undef.
Mojolicious::Plugin::ParamExpand
Михаил Че (Mikhail Che), <mche [on] cpan.org>
<mche [on] cpan.org>
To install Mojolicious::Plugin::Helper::Vars, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::Helper::Vars
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::Helper::Vars
For more information on module installation, please visit the detailed CPAN module installation guide.