Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How to remove duplicate IPs

by jwkrahn (Monsignor)
on Aug 08, 2013 at 00:41 UTC ( #1048466=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open (NMAP_DATA, "@ARGV") or die "Please type the filename. $!" ;
    
  2. or download this
    open (NMAP_DATA, $ARGV[0]) or die "Please type the filename. $!" ;
    
  3. or download this
    open NMAP_DATA, '<', $ARGV[0] or die "Cannot open '$ARGV[0]' because: 
    +$!";
    
  4. or download this
    my @ip_address = sort $1, "\n" if /($RE{net}{IPv4})/;
    print IP_DATA @ip_address if (!/^\s*$/);
    
  5. or download this
    print IP_DATA "$1\n" if /($RE{net}{IPv4})/;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1048466]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2018-02-20 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (267 votes). Check out past polls.

    Notices?