in reply to Can't locate DBD/mysql.pm in @INC

I'm guessing that homebrew doesn't actually replace the system perl, which is the one you are trying to run (#!/usr/bin/perl). Maybe try changing that to #!/usr/bin/env perl or calling your script as perl script.pl. If that doesn't work, you'll probably need to fix your path or put the full path to homebrew's perl on the shebang line.

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re^2: Can't locate DBD/mysql.pm in @INC
by donfox1 (Novice) on Mar 22, 2015 at 15:06 UTC

    I've resolved the problem by uninstalling mysql and maria-DB then reinstalling maria-DB with homebrew. There had been a problem with symlinks previously. Now I can access my databases; Thanks!