in reply to Re^5: DBD::Mysql not working properly in mac OS X
in thread DBD::Mysql not working properly in mac OS X

I think your script is running with perl 5.10 when called from the browser, and that your mySQL is compiled against perl 5.12. To see if this is the case, create the following script and compare the results you get when called from the browser and when called from the terminal.
#!/usr/bin/perl print "Content-type: text/html\n\n"; my $command = `perl -v`; print "$command\n";

Replies are listed 'Best First'.
Re^7: DBD::Mysql not working properly in mac OS X
by romy_mathew (Beadle) on Nov 05, 2013 at 01:47 UTC
    it is showing perl 5.12.4 in both case.
      What is the path to this perl? Try  $^X -V or even  /usr/bin/perl -V because its quite possible that the first perl in path is not the one in shebang (not /usr/bin/perl)