Re GrandFather's ( ++ )

my $find = qr'license @abc';

versus

my $find = qr/license \@abc/;

see perldoc perlop at " Quote and Quote-like Operators" re the quoting ( ww added notes marked by "<!--"):

While we usually think of quotes as literal values, in Perl they function as operators, providing various kinds of interpolating and pattern matching capabilities. Perl provides customary quote characters for these behaviors, but also provides a way for you to choose your quote character for any of them. In the following table, a "{}" represents any pair of delimiters you choose.
Customary  Generic        Meaning        Interpolates
     ''       q{}          Literal             no
     ""      qq{}          Literal             yes
     ``      qx{}          Command             yes*
             qw{}         Word list            no
     //       m{}       Pattern match          yes*
             qr{}          Pattern             yes*     <!-- backslash is required 
                                                             if using /.../ 
             s{}{}       Substitution          yes* 
     ....
     * unless the delimiter is ''.                      <!-- NB!

In other words, if you chose to use my $find = qr/license \@abc/;, the escaping backwhack is required (as massa advised AND as you would have learned had you used the strictures recommended above).


In reply to Re: Unable to find a pattern by ww
in thread Unable to find a pattern by sonalig

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.