Skip Menu |
 

This queue is for tickets about the Perl-MinimumVersion CPAN distribution.

Report information
The Basics
Id: 56607
Status: resolved
Priority: 0/
Queue: Perl-MinimumVersion

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 1.27



Subject: double-colon bareword Foo::Bar:: in 5.005
Date: Thu, 15 Apr 2010 10:30:40 +1000
To: bug-Perl-MinimumVersion [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
Download (untitled) / with headers
text/plain 474b
Perl::MinimumVersion might report on the new double-colon bareword syntax. I've been using the following few lines. # Foo::Bar:: bareword new in 5.005 # generally a compile-time syntax error in 5.004 # sub bareword_double_colon { my ($pmv) = @_; $pmv->Document->find_first (sub { my ($document, $elem) = @_; if ($elem->isa('PPI::Token::Word') && $elem =~ /::$/) { return 1; } else { return 0; } }); }


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.