On Jul 12, 2005, at 4:29 AM, Sriram Mokkapati wrote:

I've one probelm.This is not related to XS.But related to perl.

But this list *is* related to XS. You should post questions such as this to the "beginners" list:

    <http://lists.perl.org/showlist.cgi?name=beginners>

Having said that...

$myString = "This is a test script to get the substring from a string";

now i want the words between "test" and "a" i.e "script to get the sustring from"

how i can achieve this?

If your substring is at a fixed position - i.e. it always begins with character X, and is always Y chars long, use substr():

    perldoc -f substr

A more flexible approach would use a regular expression:

    perldoc perlretut

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

Reply via email to