general-functions.pl: Subroutine getnetworkip() accepted multiple arguments
general-functions.pl: Fix syntax error
general-functions.pl: Fix perl coding error