Created
April 16, 2009 01:07
-
-
Save mattn/96140 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
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