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

Write the program to process a list of numbers.

917


Why aren't Perl's patterns regular expressions?

1076


How to know whether a key exists or not in perl?

915


What rules must be followed by modules in perl.

948


In Perl we can show the warnings using some options in order to reduce or avoid the errors. What are that options?

941


what are steps to do to lock the sony ericsson mobile with password?

2139


What can be done for efficient parameter passing in perl? Explain.

957


“Perl regular expressions match the longest string possible”. What is the name of this match?

893


What is -> symbol in perl?

954


Explain perl one-liner?

906


List the data types that Perl can handle?

964


Explain the difference between die and exit in perl?

818


How to add elements in a hash in perl?

853


Explain join function in perl?

882


Explain regular expression in perl?

892