Help for this page

Select Code to Download


  1. or download this
    use Net::IP qw(:PROC);
    
    ...
    my $int = $ip->intip();
    
    print "Integer value of IP $ipaddr: $int\n";
    
  2. or download this
    use Net::IP qw(:PROC);
                                                                          
    +                                                                     
    +      
    ...
    
    !defined($binaddr) and print "Binary not defined\n";
    print "Binary value of integer $intaddr: $binaddr\n";