Skip to content

Instantly share code, notes, and snippets.

Dan Book Grinnz

  • Connecticut, US
Block or report user

Report or block Grinnz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Grinnz
Grinnz / dbd-sqlite-multiple-queries.perl
Created Jul 28, 2015
DBD::SQLite multiple query issue
View dbd-sqlite-multiple-queries.perl
use strict;
use warnings;
use DBI;
use Test::More;
sub run {
my ($sql, $query) = @_;
my $sth;
while ($query) {
@Grinnz
Grinnz / parameter_test.pl
Created Apr 21, 2015
Mojo parameter test
View parameter_test.pl
use Mojolicious::Lite;
helper get_contents => sub {
my $c = shift;
if ($c->req->method eq 'GET' or $c->req->method eq 'HEAD') {
return $c->req->url->query;
} else {
return $c->req->body;
}
};
You can’t perform that action at this time.