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
How the interpreter is used in Perl?
how to extract pin_code,phone_number,year from text file using regular expressions in perl
Explain use of ‘my’ keyword in perl?
What is the difference between use and require in perl programming?
What are the different ways to run cgi?
How to connect to SQL server through Perl?
Explain chomp, chop, cpan, tk.
What does Perl do if you try to exploit the execve(2) race involving setuid scripts?
Explain the execution of a program in perl.
How will you access an element of a perl array?
Explain the different types of data perl can handle.
Explain chop?
Which guidelines by Perl modules must be followed?
How to merge two arrays in perl?
Why is it hard to call this function: sub y { "because" } ?