in reply to simple padding of IP address

Maybe your invalid subroutine is called "legnth"?

  substr($converted, legnth($padded ) ) = $padded;

BCE
--Your punctuation skills are insufficient!