Robert May wrote:
> Both Win32 and Win32::GUI export a set of constants by default

Andrew M Pastuszak wrote:
How do I know which constants these two modules export?

If they were well behaved modules, then it would be documented, but neither do. Either look in their .pm files for the @EXPORT array or set $Exporter::Verbose before running your script (see the Exporter module documentation):


C:\WINDOWS\Desktop>perl -e "BEGIN{$Exporter::Verbose=1} use Win32;"
Carp::EXPORT_FAIL cached: verbose &verbose at C:/Perl/Perl587/lib/Exporter/Heavy.pm line 171. Importing into Carp from Carp: carp, confess, croak at C:/Perl/Perl587/lib/Exporter/Heavy.pm line 190. Importing into main from Win32: DACL_SECURITY_INFORMATION, GROUP_SECURITY_INFORMATION, MB_ICONASTERISK, MB_ICONERROR, MB_ICONEXCLAMATION, MB_ICONHAND, MB_ICONINFORMATION, MB_ICONQUESTION, MB_ICONSTOP, MB_ICONWARNING, NULL, OWNER_SECURITY_INFORMATION, SACL_SECURITY_INFORMATION, WIN31_CLASS at -e line 1
        main::BEGIN() called at C:/Perl/Perl587/lib/Win32.pm line 1
        eval {...} called at C:/Perl/Perl587/lib/Win32.pm line 1



Regards,
Rob.

Reply via email to