Skip to content

Instantly share code, notes, and snippets.

@mattn
Created April 16, 2009 01:07
Show Gist options
  • Save mattn/96140 to your computer and use it in GitHub Desktop.
Save mattn/96140 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use utf8;
use YAML;
use DBIx::Simple;
my $db = DBIx::Simple->connect("dbi:SQLite:dbname=c:/foo.db", "", "")
or die DBIx::Simple->error;
$db->func(1, "enable_load_extension");
my $result = $db->query("select load_extension('/sqlite3_mod_regexp.dll')")
or die DBIx::Simple->error;
warn Dump $db->query("select * from foo where value regexp '^あ';")->hashes;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment