Write a simple regular expression to match an IP address,
e-mail address, city-state-zipcode combination.
Answer Posted / mukesh
/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/
ip=$1;
| Is This Answer Correct ? | 27 Yes | 20 No |
Post New Answer View All Answers
What is v-strings?
You want to connect to sql server through perl. How would you do that?
Explain arrays in perl.
Explain string comparison operators in perl.
What are arrays in perl?
What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)
You want to open and read data files with perl. How would you do that?
How does polymorphism work in perl?
There is no strict data types in perl unlike in other high level languages like Java so wouldn't that be a problem if a code in perl is to be a written by a big team of 20+ members ?"
How do I read command-line arguments with Perl?
Which functions in perl allows you to include a module file. State their differences.
How can arrays be tied?
Which feature of perl provides code reusability?
What is perl push array function?
How to create a directory in perl?