Skip Menu |

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

Report information
The Basics
Id: 78156
Status: resolved
Priority: 0/
Queue: Perl-Tidy

People
Owner: perltidy [...] users.sourceforge.net
Requestors: obrien.jk [...] gmail.com
KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 20120619
  • 20120701
  • 20130806
Fixed in: (no value)



Subject: package NAMESPACE VERSION syntax not accepted
As of perl 5.012 you can do... package Some::Class 2.012; Where '2.012' is used to set the value of $VERSION However, perltidy doesn't like this and says... 1: Unexpected '2' after package name 'package Some::Class' 1: package Some::Class 2.012; ---------------- ^ found Number where operator expected (previous token underlined) J. I'm using 5.014 on Ubuntu.
Thanks, the next release will fix this.
Fixed in version 20120714
Also need support for v-string version format: use XXX v0.1.0; Now produce an error: Unexpected 'v0' after package name
On Thu Mar 14 08:18:11 2013, ZDM wrote: Show quoted text
> Also need support for v-string version format: > > use XXX v0.1.0; > > Now produce an error: Unexpected 'v0' after package name
Confirmed, support for v-strings needed.

In case it was missed, vstrings are need on the package declaration too ( ie: the other comment about vstrings suggests it was more a focus of "use" lines )


package Foo v1.2.3 {

}

^ For example is valid after 5.16, but perltidy doesn't like it much

Sorry, clicked wrong list -_-
Version 20130922 fixes this. Thanks to Kent Fredric for clarifying the problem.