perl has no equivalent syntax to what you posted. You can try the suggestions posted by CJason or describe better what you need to do. Your example is also confusing because it seems that the shortest match is 7x not 7xyz so I would think the example code would display abcyz instead of abc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.