how to find a substring in a string without using substr
built in functions, and print the substring found
Answer Posted / garg
#! /user/bin/perl
$str="Yashwanth";
$n="wan";
if ($str=~ $n)
{
print $n;
}
Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
Explain the internal working of cgi
What is perl dbi?
What are prefix dereferencer? List them.
What is cpan ? What are the modules coming under this?
We all know private variables exist in perl. But do private METHODS exist in perl ? Eg ?
What is subroutine in perl?
How can you call a subroutine and identify a subroutine?
How can you create anonymous subroutines?
How to remove a directory in perl?
Explain cpan?
Differentiate between c++ and perl.
How to sort arrays in perl?
Difference between the variables in which chomp function work ?
How are parameters passed to subroutines in perl?
How to start perl in interactive mode?