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
How to start perl in interactive mode?
Does Perl have reference type?
Write a program to download the contents from www.perlinterview.com/answers.php website in Perl.
How to open and read data files with Perl
What is warn function in perl?
What are scalars?
Explain the arguments for perl interpreter.
Define say() function in perl?
Is perl compiler or interpreter?
What are the various advantages and disadvantages of perl?
What is perl I used for?
Who created perl?
How many types of operators are used in the Perl?
What is the purpose of goto expr statement?
Explain perl. When do you use perl for programming? What are the advantages of programming in perl?