rodinski has asked for the wisdom of the Perl Monks concerning the following question:
I'm not sure how to go about this. Do I:
1) write a perl program that connects to sqlite, registers a function using perl code:
Then somehow call up the interactive shell?dbi->func('mysqlfunc',-1,'my_perl_func','create_function');
2) enter the shell using dbish at the command line then use the /perl command to create and register the new function from inside the shell.
I had just a bit of success with method one, I could hald the perl program and get the shell prompt but I couldn't see any output. Note I entered the dbish by using `dbish:SQLite:name_of_db`
Specifcally I would like to access to the sqrt function while having all the niceness of the dbi interactive shell.
Thank you.,
rodinski.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI::Shell sqlite dbh->func(
by NetWallah (Canon) on Oct 13, 2013 at 02:12 UTC | |
by rodinski (Novice) on Oct 13, 2013 at 23:04 UTC | |
by Mr. Muskrat (Canon) on Oct 23, 2013 at 16:24 UTC | |
by rodinski (Novice) on Oct 31, 2013 at 01:50 UTC |