Hey guys,
i'm a newbie to perl, I've been looking up how to parse strings but I can't seem to find what i'm looking for. If i have a string ($apple = "I like to eat green apples"), how do i pull out a section of that string and put it into another string. For example, if i want everything between "like" and "green" how do i put " to eat " into another variable $whyMe? What would the assignment statment look like to do this and the regular expression if i need one.
Thanks
Harvey
i'm a newbie to perl, I've been looking up how to parse strings but I can't seem to find what i'm looking for. If i have a string ($apple = "I like to eat green apples"), how do i pull out a section of that string and put it into another string. For example, if i want everything between "like" and "green" how do i put " to eat " into another variable $whyMe? What would the assignment statment look like to do this and the regular expression if i need one.
Thanks
Harvey