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
Why we use CGI?
List the prefix dereferencer in Perl.
Why does Perl not have overloaded functions?
You want to concatenate strings with perl. How would you do that?
What are hashes?
what is perl language?
Write the program to process a list of numbers.
What is the main function of cookie server?
How to read a directory in perl?
How to add elements in a hash in perl?
you are required to replace a char in a string and store the number of replacements. How would you do that?
Explain different types of perl operators.
How to copy a file in perl?
Explain perl one-liner?
What is the difference between use and require in perl?