Last active
August 29, 2015 14:01
-
-
Save tadegenban/1aba3afccfd5ae523725 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env perl | |
use Mojolicious::Lite; | |
# Documentation browser under "/perldoc" | |
my $user_scalar = ''; | |
get '/' => sub { | |
my $self = shift; | |
response(); | |
}; | |
sub response{ | |
say 'here'; | |
say $user_scalar; | |
$user_scalar = 'b'; | |
return 1; | |
} | |
app->start; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment