Skip to content

Instantly share code, notes, and snippets.

@esobchenko
Created April 25, 2011 09:50
Show Gist options
  • Select an option

  • Save esobchenko/940321 to your computer and use it in GitHub Desktop.

Select an option

Save esobchenko/940321 to your computer and use it in GitHub Desktop.
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