Skip to content

Instantly share code, notes, and snippets.

@domm
Created July 1, 2010 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domm/459776 to your computer and use it in GitHub Desktop.
Save domm/459776 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use Validad::Address::Utils;
# rather complex way to connect to DB, setting search_path etc
my $schema = Validad::Address::Utils->connect_dbic;
my $f1 = $schema->resultset('Ktest')->create({
id=>int(rand(1000000)),
foo=>'test',
# kiotest=>DateTime->now,
});
say $f1->id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment