Hi Bernard-
I think that problem is attributable to
http://rt.cpan.org/Public/Bug/Display.html?id=21575. Upgrading to PPI 1.118 should correct it.
-Jeff
Show quoted text----- Original Message ----
From: "Bernhard.Schmalhofer@gmx.de via RT" <bug-Perl-Critic@rt.cpan.org>
To: undisclosed-recipients
Sent: Wednesday, September 27, 2006 9:44:50 AM
Subject: [rt.cpan.org #21749] $VERSION not found when in list with spaces
Wed Sep 27 12:44:48 2006: Request 21749 was acted upon.
Transaction: Ticket created by Bernhard.Schmalhofer@gmx.de
Queue: Perl-Critic
Subject: $VERSION not found when in list with spaces
Broken in: 0.2
Severity: Normal
Owner: Nobody
Requestors: Bernhard.Schmalhofer@gmx.de
Status: new
Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=21749 >
Hi,
in my scripts I frequently have lines like this:
our ( $VERSION ) = '$Revision: 4931 $' =~ m{ \$Revision: \s+ (\S+) }xms;
For this I get:
Modules::RequireVersionVar: No "VERSION" variable found at line 1 See
page 404 of PBP
However I get no complaint when I have:
our ($VERSION) = '$Revision: 4931 $' =~ m{ \$Revision: \s+ (\S+) }xms;