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?
Difference between the variables in which chomp function work ?
What is the function of virtual documents in cgi programs?
Which functions in perl allows you to include a module file. State their differences.
Explain the execution of a program in perl.
What does the’$_’ symbol mean?
What is perl dbi?
Can inheritance be used in perl?
How can information be put into hashes?
How many types of primary data structures in Perl and what do they mean?
What is lexical variable in perl?
How can you create anonymous subroutines?
How would you ensure the re-use and maximum readability of your perl code?
How to check the status of airplane mode (enable/disable) in perl for Android mobile?
Explain chop?