hermes1908 has asked for the wisdom of the Perl Monks concerning the following question:
A sample sql file can be found at http://qpls.devio.us/sample Any help would be much appreciated,#!/usr/bin/env perl use strict; use warnings; use DBI; my $file="sample"; my $dbh=DBI->connect("dbi:SQLite:dbname=$file","","") or die "Unable t +o establish connection to $file\n"; my ($link)=$dbh->selectrow_array("SELECT value FROM ItemTable WHERE ke +y='link'"); print "\$link is $link\n"; system("echo", $link); $dbh->disconnect;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: system function not handling string properly
by choroba (Cardinal) on Sep 06, 2013 at 21:02 UTC | |
by hermes1908 (Novice) on Sep 06, 2013 at 21:21 UTC | |
by choroba (Cardinal) on Sep 06, 2013 at 21:31 UTC | |
by McA (Priest) on Sep 06, 2013 at 21:45 UTC | |
by choroba (Cardinal) on Sep 06, 2013 at 21:50 UTC | |
| |
by Anonymous Monk on Sep 08, 2013 at 09:27 UTC | |
|
Re: system function not handling string properly
by McA (Priest) on Sep 06, 2013 at 21:02 UTC | |
by hermes1908 (Novice) on Sep 06, 2013 at 21:19 UTC | |
by McA (Priest) on Sep 06, 2013 at 21:36 UTC |