Subject: | warning about prototypes |
Using the module results in the following warnings:
Prototype after '@' for ex::constant::vars::ARRAY : \@@; at ...path.../ex/constant/vars.pm line
32.
Prototype after '%' for ex::constant::vars::HASH : \%%; at ...path.../ex/constant/vars.pm line
33.
These are referring to the following:
sub ARRAY (\@@;) { 'array', @_ }
sub HASH (\%%;) { 'hash', @_ }
It's the semi-colons that are causing the warning, so you just need to delete them.
I also deleted them from the previous line:
sub SCALAR (\$$;) { 'scalar', @_ }
This is fixed in my copy of the module on github:
https://github.com/neilbowers/ex-constant-vars