thanks to you all. but it adds the $victim like this to the file net::aim=hash(0x194efc4) instead of botroktester but it will send replies to that name so it is working just want to know why and if that could be changed?
That's a problem with whatever you're passing into the subroutine. Your subroutine seems to be expecting a string that contains a name, but you're actually passing in a Net::Aim object.