Sorry for not actually testing what I wrote earlier. I've given it some more attention, and I've come to the conclusion that you also need to prefix the option names with a '-'.

This script:

#!/usr/bin/perl -w # Server component of SQLite client/server prototype. use DBI::ProxyServer; { DBI::ProxyServer::main( # clients => [ '192.168.0.115' ], -debug => 1, -localport => 16000, -logfile => '/tmp/Server.log', -mode => 'fork', -pidfile => '/tmp/Server.pid', , @ARGV); }
produces the following output:
Use of uninitialized value in string eq at /opt/perl/lib/site_perl/5.8 +.8/i686-linux/DBI/ProxyServer.pm line 99. Tue Oct 2 12:21:27 2007 debug, Server starting in operation mode fork Tue Oct 2 12:21:27 2007 notice, Server starting Tue Oct 2 12:21:27 2007 debug, Writing PID to /tmp/Server.pid
Furthermore, netstat shows it's listening on port 16000:
$ netstat -natp | grep LIST tcp 0 0 0.0.0.0:16000 0.0.0.0:* LISTEN 2624/perl
I suspect you'll need to read the docs for the exact specs for the clients option, as I saw it said the elements are supposed to be hashrefs. I didn't bother testing that.

HTH,
Rhesa


In reply to Re^2: DBI::ProxyServer question by rhesa
in thread DBI::ProxyServer question by talexb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.