| 1 | package P50Tools::Packs::RandonIp; | ||
| 2 | |||
| 3 | use common::sense; | ||
| 4 | |||
| 5 | { | ||
| 6 | no strict "vars"; | ||
| 7 | $VERSION = '0.1'; | ||
| 8 | } | ||
| 9 | |||
| 10 | #create random ip | ||
| 11 | sub new { | ||
| 12 | my $ip = join (".", map int rand (256), 1..4); | ||
| 13 | return $ip; | ||
| 14 | } | ||
| 15 | |||
| 16 | 1; | ||
| 17 | |||
| 18 | =head1 | ||
| 19 | For more information go to L<P50Tools>. | ||
| 20 | =cut |