пятница, 12 декабря 2014 г. пользователь Pavel Serikov написал:

> Hi everyone,
>
> I need to pass as input parameter of one function name of other function
> which must be executed in some cases. But cause of Mojolicious uses 'strict
> refs' I have no idea how to do it :(
>
> Can you please advice me something?
>
> For better understanding problem let me give an example:
>
> #!/usr/bin/env perl
> my $i = "test";
> sub test {
>     print "Hello World!\n";
> }
> $i->();
> this code works fine
>
> #!/usr/bin/env perl
> use Mojolicious::Lite;
> my $i = "test";
> sub test {
>     print "Hello World!\n";
> }
> $i->();
> and this doesn't :(
>
> Is this a bug or it's a feature?
>
> Any suggestion is much appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','mojolicious%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> Visit this group at http://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
С уважением.
Ильиных Денис
Руководитель отдела разработки
Компания "GT-Shop.ru"
Телефон: +7(963) 995-7616

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to