You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Object::Pad provides a new syntax for declaring packages that provide an object class, using the class keyword. This can also set the $VERSION of the package.
class Module::Name 1.23 {
...
}
class Another::Module 4.56;
...
Currently Module::Metadata does not understand this syntax and fails to extract versions.
Should that pod note perhaps be changed, now that the syntax is supported in Module-Metadata? Or is it still recommended to declare both package and class for backwards compatibility?
Object::Pad
provides a new syntax for declaring packages that provide an object class, using theclass
keyword. This can also set the$VERSION
of the package.Currently
Module::Metadata
does not understand this syntax and fails to extract versions.A workaround is to provide both a
package
and aclass
declaration, because doing so will not confuseObject::Pad
but does mean the version is correctly extracted. E.g. see https://metacpan.org/source/PEVANS/Device-Chip-CC1101-0.03/lib/Device/Chip/CC1101.pm#L9-12:The text was updated successfully, but these errors were encountered: