Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, I am creating a lsit by retrieving the IP address using use Socket; $packed=gethostbyname(server); $get_IP=inet_ntoa($packed) and now I want to find network (CIDR mask) for those in my ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    19

    How to find network for an IP in perl

    Hi all,

    I am creating a lsit by retrieving the IP address using
    use Socket;

    $packed=gethostbyname(server);
    $get_IP=inet_ntoa($packed)

    and now I want to find network (CIDR mask) for those in my current network........

    Could any one suggest me any way to do that in perl .........


    thanks in advance
    Last edited by shorye; 05-22-2008 at 05:05 PM. Reason: was incorrect

  2. #2
    Linux Newbie Tutku's Avatar
    Join Date
    Jul 2007
    Location
    Izmir / Turkey
    Posts
    167
    Do you want to find your local IP? If i understood right, this link can help you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...