Answers

Question and Answer:

  Home  CGI Perl

⟩ How to find a substring in a string without using substr built in functions, and print the substring found?

$r="YASHWANTH";

@n=split (//,$r);

print "@nn";

@t=splice(@n,0,3);

print "@tn";

$r=join("",@t);

print "$rn";

~

~

 231 views

More Questions for you: