in reply to concatenation in perl

It seems that $OID contains a trailing newline, so you have to remove that before concatenating the strings:
chomp $OID; my $new_OID = $OID . '.5'; print $new_OID, "\n";