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 is perl dbi?
What does -> symbol indicates in Perl?
What are prefix dereferencer? List them.
Comment on the scope of variables in perl.
Comment on array slicing and range operator
Explain lists and ivalue?
What is use of ‘->’ symbol?
Which guidelines by Perl modules must be followed?
What is perl? What is the basic command to print a string in perl?
How do I do fill_in_the_blank for each file in a directory?
What is chomp() operator/function?
You want to download the contents of a url with perl. How would you do that?
How to close a file in perl?
Perl regular expressions are greedy" what does this mean?
What is 'rollback' command in perl?