$ip =~ s/\.log$//; [download]
In reply to Re: subsitute s/ and match m/ failure by svenXY in thread subsitute s/ and match m/ failure by kp2a