in reply to Re^2: mysql error
in thread mysql error

It's the order in your $PATH environmental variable:
echo $PATH
You can change the order to put /usr/bin/ before /usr/local/bin. Or instead of running the script like
perl script_name.pl
just run
./script_name.pl

Replies are listed 'Best First'.
Re^4: mysql error
by dcscott (Novice) on Feb 16, 2024 at 20:05 UTC
    Thank You!