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
What does `$result = f() .. g()' really return?
Is perl compiler or interpreter?
Differentiate use and require?
What does perl do in linux?
Explain gmtime() function in perl?
Why do you use Perl?
What are the various perl data types based on the context?
Write syntax to add two arrays together in perl?
what is Chop & Chomp function does?
Define dynamic scoping.
What are the logical operators used for small scale operations? Explain them briefly.
How will you open a file in a write-only mode in perl?
What are arrays in perl?
What are perl variables?
“Perl regular expressions match the longest string possible”. What is the name of this match?