Write an expression or perl script to identify the entered
ip address is valid or not?
Answer Posted / subhash chandran
if($IP !~ /(((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(\d|
[1-9]\d|1\d{2}|2[0-4]\d|25[0-5]))/)
{
print "Valid\n";
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is perl compiler or interpreter?
There are some duplicate entries in an array and you want to remove them. How would you do that?
Which functions in perl allows you to include a module file.
How can you use Perl warnings and what is the importance to use them?
What does next statement do in perl?
What is the use of -n and -p options?
What is subroutine in perl?
What are stdin, stdout and stderr?
What is Perl?
Explain returning values from subroutines?
What are scalars in perl?
Explain 'grep' function.
Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??
What is cpan in perl?
What is grep used for in perl?