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
You want to add two arrays together. How would you do that?
Mention how many ways you can express string in Perl?
What is perl push array function?
explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.
Which functions in perl allows you to include a module file. State their differences.
Explain the internal working of cgi
What is the use of -w, -t and strict in Perl?
How to do comment in perl?
What are arrays in perl?
How we can navigate the xml documents?
How to remove a directory in perl?
What is subroutine in perl?
What is the function of virtual documents in cgi programs?
Differences between die and exit.
What are some of the key features of objects in perl?