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 are the steps involved in configuring a server using cgi programming?
What is the use of command “use strict”?
How to print escaping characters inside a string in perl?
What is the difference between perl list and perl array?
Demonstrate subroutines in perl with a simple example.
List the prefix dereferencer in Perl.
Differentiate use and require?
Explain subroutine in perl?
Define perl scripting?
Elaborate on perl bite-wise operators.
What is the main function of cookie server?
how to connect cisco switch uisng perl script
What are the logical operators used for small scale operations?
How to access parameters passed to a subroutine in perl?
Explain cpan?