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
What are the logical operators used for small scale operations? Explain them briefly.
What does perl do in linux?
How to open and read data files with Perl
How to read file into hash array ?
How to remove a directory in perl?
what are the three groups involved in information sharing?
Which functions in perl allows you to include a module file. State their differences.
How to do comment in perl?
Explain the execution of a program in perl.
How to implement a stack in Perl?
what are prefix dereferencer and list them out?
What is 'commit' command in perl?
How does a “grep” function perform?
How to convert arrays into a string in perl?
What is goto statement in perl?