I program that I am trying to run keeps giving me the error

Can't use string ("2") as an ARRAY ref while "strict refs" in use at /usr/share/nmap-cgi/api//Nmap/CGI/Main.pm line 188.

I know I need to change the code around a bit to get it to work but I'm sure exactly what to do.

Here is Main.pm line 188

if( $#{@$nscans} > -1 )

What do I have to chang...