Perl String Quotes

We've searched our database for all the quotes and captions related to Perl String. Here they are! All 2 of them:

Check whether a word appears in a string twice /(word).*\1/ This regular expression matches a word followed by something or nothing at all, followed by the same word. Here, (word) captures the word in group 1, and \1 refers to the contents of group 1, which is the same as writing /(word).*word/. For example, silly things are silly matches /(silly).*\1/, but silly things are boring doesn’t because silly is not repeated in the string.
Peteris Krumins (Perl One-Liners: 130 Programs That Get Things Done)
represents a URL. (Actually, a URI object can also represent a kind of URL-like string called a URN, but you’re unlikely to run into one of those any time soon.) To create a URI object from a string containing a URL, use the new( ) constructor: $url = URI->new(url [, scheme ]);
Sean M. Burke (Perl & LWP: Fetching Web Pages, Parsing HTML, Writing Spiders & More)