in reply to Re^2: For each loop through mysql db to run Net::Telnet command
in thread For each loop through mysql db to run Net::Telnet command

Hi,

You are trying to call fetchall_arrayref on the return value of your execute() call. In fact it is a method on the statement handle, which in your code is $sql (more idiomatically named as $sth).

Hope this helps!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^4: For each loop through mysql db to run Net::Telnet command
by jay83 (Novice) on Nov 14, 2022 at 13:13 UTC
    This helped thank you!