Keep It Simple, Stupid | |
PerlMonks |
Re: Win32::Sound constants are weird (autoloaded, not actual constants)by beech (Parson) |
on Dec 16, 2017 at 02:18 UTC ( [id://1205642]=note: print w/replies, xml ) | Need Help?? |
Hi, Those don't look to be actual constants in the perl sense(empty prototype)/use constant
Its one of the reasons I tend to always use () for anything called constants in the docs
update: after looking at the source, I see they're also autoloaded using some old ExtUtils::Constant code ... and there is a warning about that in https://metacpan.org/pod/Exporter#AUTOLOADed-Constants You might wish to report this bug to rt://Win32-Sound, all that autoload stuff for 20 constants seems like it belongs in the past :)
In Section
Seekers of Perl Wisdom
|
|