aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/dbi-sqlite.pl1
-rw-r--r--template/read-file.perl2
2 files changed, 3 insertions, 0 deletions
diff --git a/template/dbi-sqlite.pl b/template/dbi-sqlite.pl
new file mode 100644
index 0000000..6f66987
--- /dev/null
+++ b/template/dbi-sqlite.pl
@@ -0,0 +1 @@
+my $dbh = DBI->connect("dbi:SQLite:dbname={{_cursor_}}");
diff --git a/template/read-file.perl b/template/read-file.perl
new file mode 100644
index 0000000..53138a4
--- /dev/null
+++ b/template/read-file.perl
@@ -0,0 +1,2 @@
+open my $fh, '<', '{{_cursor}}' or die "failed to open: $!";
+my $content = do { local $/; <$fh> };