Yes, the suggested lines have been removed - everything on the script looks good. I added in the code to check for errors and the following output appears:

Failed to find IP range
isiniprange(192.168.3.14,$iparray[0]) =
isiniprange(192.168.3.14,$iparray[1]) =
isiniprange(192.168.3.14,$iparray[2]) =

So it's correctly reading the IP (ie 192.168.3.14 is the client IP) but it's not actually executing the add printer functions based on that.