in reply to dbh connections: stumped!
it won't run on the server. Get rid of the CR (use text-mode file transfer to the server, or dos2unix on the server after the script is uploaded.) Another work-around is to add a useful flag or two:#!/usr/bin/perl\r\n
When you do that, you not only get the benefits of taint checking and warnings enabled (which you ought to do anyway for a cgi script!!), but also unix will correctly parse out the path to perl as /usr/bin/perl (rather than /usr/bin/perl\r).#!/usr/bin/perl -T -w
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: dbh connections: stumped!
by kevin (Initiate) on Mar 11, 2006 at 20:08 UTC | |
by wfsp (Abbot) on Mar 12, 2006 at 07:47 UTC | |
by graff (Chancellor) on Mar 13, 2006 at 02:29 UTC |