[sf-perl] qr{} question

frosty biztos at mac.com
Tue May 26 12:04:21 PDT 2009


Escape the pound sign and you're good.

my $BAR_REGEX = qr/ $BAR [^\#]+ -D $BAR /xms;

-- f.
 
On Tuesday, May 26, 2009, at 12:02PM, "Bill Moseley" <moseley at hank.org> wrote:
>On Tue, May 26, 2009 at 11:52:20AM -0700, David Alban wrote:
>>     Readonly my $FOO_REGEX => qr{ $FOO [^#]+ -D $FOO }xms;
>
>Is the "#" looking like a comment?
>
>Do you really mean to use "xms" or is that just what Perl Critic
>suggests?
>
>-- 
>Bill Moseley.
>moseley at hank.org
>Sent from my iMutt
>_______________________________________________
>SanFrancisco-pm mailing list
>SanFrancisco-pm at pm.org
>http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>
>


More information about the SanFrancisco-pm mailing list