how to find a substring in a string without using substr
built in functions, and print the substring found
Answer Posted / yashwanth
$r="YASHWANTH";
@n=split (//,$r);
print "@n\n";
@t=splice(@n,0,3);
print "@t\n";
$r=join("",@t);
print "$r\n";
~
~
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
What is the different between array and hash in perl programming?
Explain what is the scalar data and scalar variables in Perl?
Explain perl. When do you use perl for programming? What are the advantages of programming in perl?
What is warn function in perl?
What are the various flags/arguments that can be used while executing a perl program?
You want to concatenate strings with perl. How would you do that?
What is goto statement in perl?
Differentiate between c++ and perl.
How to open a directory in perl?
What is perl? What is the basic command to print a string in perl?
Write the program to process a list of numbers.
Explain regular expression in perl?
Differentiate use and require?
What is perl I used for?
What is confess function in perl?