Created
September 18, 2013 18:32
-
-
Save rblackwe/6613451 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 strict; | |
use warnings; | |
use Browser::Open qw( open_browser ); | |
use Dancer; | |
get '/' => sub { | |
my $url = param('u'); | |
my $cmd = open_browser($url); | |
return $url; | |
}; | |
dance; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment