Advertisement
opexxx

dec2dot.pl

Feb 5th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.19 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use IO::Socket
  3. open(DAT, $ARGV[0]) || die("Could not open file!");
  4. @raw_data=<DAT>;
  5. close(DAT);
  6. my $p;
  7. foreach (@raw_data) {
  8. print inet_ntoa(pack('N',$_));
  9. print "\n";
  10. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement