Skip Menu |

This queue is for tickets about the enum CPAN distribution.

Report information
The Basics
Id: 71977
Status: rejected
Priority: 0/
Queue: enum

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

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: Letters example is invalid
One example in the POD is invalid: use enum qw(:Letters_ A..Z); ## Creates Letters_A, Letters_B, Letters_C, ... The problem is that ".." is not expanded inside qw(). Fix: use enum ':Letters_' => 'A'..'Z'; -- Olivier Mengué - http://perlresume.org/DOLMEN
Looks like I'm wrong. The expansion rules for qw() seems to differ between: use enum qw(:Letters_ A..Z); my @a = qw(:Letters_ A..Z);
There is some magic in enum.pm that handles the '..' -- Olivier Mengué - http://perlresume.org/DOLMEN