Created
April 25, 2011 09:50
-
-
Save esobchenko/940321 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use strict; | |
| use warnings; | |
| use Mojolicious::Lite; | |
| get '/' => sub { | |
| my $self = shift; | |
| my @t = grep {"" !~ //} ("what the fuck?!"); | |
| push @t, "everything ok"; | |
| # we expect "everything ok" here but guess what we get? | |
| $self->render_text(shift @t) ; | |
| }; | |
| app->start; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment