Skip Menu |

This queue is for tickets about the Graphics-ColorNames CPAN distribution.

Report information
The Basics
Id: 127301
Status: resolved
Priority: 0/
Queue: Graphics-ColorNames

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • v3.0.1
  • v3.0.2
  • v3.1.0
  • v3.1.1
  • v3.1.2
  • v3.2.0
  • v3.2.1
  • v3.3.0
  • v3.3.1
Fixed in: (no value)



Subject: ->VERSION() does not return the version
As per subject. Up to v3.0.0 it worked as expected: Testprogram: perl -MGraphics::ColorNames -e 'printf "->VERSION %-12s \$VERSION %s\n", Graphics::ColorNames->VERSION(), $Graphics::ColorNames::VERSION' Output for various versions og GCN: ->VERSION 2.11 $VERSION 2.11 ->VERSION v3.0.0 $VERSION v3.0.0 ->VERSION 1 $VERSION v3.0.1 ->VERSION 1 $VERSION v3.0.2 ->VERSION 1 $VERSION v3.1.0 ->VERSION 1 $VERSION v3.1.1 ->VERSION 1 $VERSION v3.1.2 ->VERSION 1 $VERSION v3.2.0
v3.3.0 touched the VERSION method such that ->VERSION() returns the $VERSION but now ->VERSION(42) also returns the $VERSION. A better fix would probably be to remove the VERSION method.