develooper Front page | perl.perl5.porters | Postings from April 2008

RE: [perl #53414] perlbug AutoReply: Parse problem in

Thread Next
David Freedman
April 27, 2008 08:29
RE: [perl #53414] perlbug AutoReply: Parse problem in
Message ID:
Also, reading the module POD, it seems the author was aware of certain conflicts with the divisor operator
, he states:

"Due to the heuristic nature of's source parsing, the presence of
regexes with embedded newlines that are specified with raw C</.../>
delimiters and don't have a modifier C<//x> are indistinguishable from
code chunks beginning with the division operator C</>. As a workaround
you must use C<m/.../> or C<m?...?> for such patterns. Also, the presence
of regexes specified with raw C<?...?> delimiters may cause mysterious
errors. The workaround is to use C<m?...?> instead."

However, my example does not use embedded newlines, also, the following examples fail:

perl -MSwitch -e '$foo = (1/2); switch($s) { case m/foo/ { print } }'

perl -MSwitch -e '$foo = (1/2); switch($s) { case m/foo/i { print } }'

perl -MSwitch -e '$foo = (1/2); switch($s) { case /foo/i { print } }'

Not sure if this is so much a bug , but a limitation of the module which is not 
documented properly, either way, is a module which behaves like this suitable for the core?

Kind Regards,

David Freedman

David Freedman
Group Network Engineering 
Claranet Limited

-----Original Message-----
From: []
Sent: Sun 4/27/2008 13:10
To: David Freedman
Subject: [perl #53414] perlbug AutoReply: Parse problem in 

This message has been automatically generated in response to the
creation of a perl bug report regarding:
   "Parse problem in".

There is no need to reply to this message right now.  Your ticket has been
assigned an ID of [perl #53414].  Within the next 24-72 hours, 
your message will be posted to the perl developers.  Please be patient!

Please include the string:

   [perl #53414]

in the subject line of all future correspondence about this issue. To do so, 
you may reply to this message (please delete unnecessary quotes and text.)

  Thank you,

Received: (qmail 18926 invoked from network); 27 Apr 2008 12:10:28 -0000
Received: from localhost (HELO ( by localhost with SMTP; 27 Apr 2008 12:10:28 -0000
Received: (qmail 18923 invoked by alias); 27 Apr 2008 12:10:28 -0000
Received: from (HELO ( by (qpsmtpd/0.28) with SMTP; Sun, 27 Apr 2008 05:10:26 -0700
Received: (qmail 18849 invoked by uid 225); 27 Apr 2008 12:10:22 -0000
Received: (qmail 18845 invoked by alias); 27 Apr 2008 12:10:21 -0000
Received: from (HELO ( by (qpsmtpd/0.28) with ESMTP; Sun, 27 Apr 2008 05:10:18 -0700
Received: from (localhost.localdomain []) by (8.13.8/8.13.8) with ESMTP id m3RCL8Xq005261 for <>; Sun, 27 Apr 2008 13:21:08 +0100
Received: (from tdcdf1@localhost) by (8.13.8/8.13.8/Submit) id m3RCL76d005260; Sun, 27 Apr 2008 13:21:07 +0100
Subject: Parse problem in
X-Spam-Status: No, hits=-6.6 required=8.0 tests=BAYES_00,PERLBUG_CONF
Return-Path: <>
X-Old-Spam-Status: No, hits=-6.6 required=8.0 tests=BAYES_00,PERLBUG_CONF
Date: Sun, 27 Apr 2008 13:21:07 +0100
Message-ID: <>
From: David Freedman <>
X-RT-Original-Encoding: ascii
content-type: text/plain; charset="utf-8"

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About