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
Write the program to process a list of numbers.
Why aren't Perl's patterns regular expressions?
How to know whether a key exists or not in perl?
What rules must be followed by modules in perl.
In Perl we can show the warnings using some options in order to reduce or avoid the errors. What are that options?
what are steps to do to lock the sony ericsson mobile with password?
What can be done for efficient parameter passing in perl? Explain.
“Perl regular expressions match the longest string possible”. What is the name of this match?
What is -> symbol in perl?
Explain perl one-liner?
List the data types that Perl can handle?
Explain the difference between die and exit in perl?
How to add elements in a hash in perl?
Explain join function in perl?
Explain regular expression in perl?