in reply to getting list of IP's from range
I think you want to try to get Net::Netmask to work. You may need to re-write 10.0.0.0-50 slightly (to 10.0.0.0-10.0.0.50) but it'll otherwise probably do this job -- and it may do it anyway.
-Paul