in reply to subsitute s/ and match m/ failure

Hi,
since you split on ':' which is after .log,
$ip =~ s/\.log$//;
will do the trick.
Regards,
svenXY