Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write an expression or perl script to identify the entered
ip address is valid or not?

Answer Posted / digesh patel

if($ipaddress=~m\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b)
print "\n It is a valid IP address :";

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You want to add two arrays together. How would you do that?

869


Mention how many ways you can express string in Perl?

1006


What is perl push array function?

933


explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.

862


Which functions in perl allows you to include a module file. State their differences.

936


Explain the internal working of cgi

918


What is the use of -w, -t and strict in Perl?

982


How to do comment in perl?

941


What are arrays in perl?

962


How we can navigate the xml documents?

1001


How to remove a directory in perl?

983


What is subroutine in perl?

941


What is the function of virtual documents in cgi programs?

960


Differences between die and exit.

992


What are some of the key features of objects in perl?

937