win - Win32 programming and development tool


win documentation  | view source Contained in the win distribution.

Index


NAME

Top

win - Win32 programming and development tool

DESCRIPTION

Top

The goal of win, the Perl Win32 programming tool, is to make Perl Win32 programming simpler, quicker, and less of a hassle. The win tool seeks to achieve its goal by:

1. Addressing the integration of Win32 modules.
2. Addressing Win32 idiosyncrasies.

You can call other Win32 modules with win, so your module requests will be grouped together in one import argument. And if your system doesn't have the module you requested, win, with your permission, will download and install the module for you (using PPM).

And you never have to worry about the capatilization of those Win32 modules because win will ensure the proper case. By default, win also enables the Win32::Autoglob and Win32::Die modules.

EXAMPLES

Top

        # use Win32::OLE and Win32::API

        use win q(ole, api);    

Notice that the module names, ole and api, are not capitalized. Of course, you can capitalize them if you like, but it doesn't matter, since win will check the package name of each module requested.

        # just use the default modules    

        use win;

This is the equivalent of saying:

        use Win32::Autoglob;
        use Win32::Die;

Another example:

        # use Win32::OLE, Win32::API, and Win32::TieRegistry

        use win q(  ole,
                    api,
                    tieregistry(Delimiter=>"/")
                 );

DEFAULT MODULES

Top

By default, win enables the Win32::Autoglob and Win32::Die modules

For more information about these modules, please see their documentation. More modules may be added in future releases.

NOTES

Top

Observe that arguments to import are passed via q// and not qw//. Of course, you could also use single quotes, but I prefer not to. Commas are the delimiter because they seem more appropriate than spaces. Also commas, unlike spaces, are rarely used in import arguments.

An alternative for dealing with the letter case of Win32 file names is a modification of the UNIVERSAL.pm. See:

http://www.perlmonks.org/index.pl?node_id=66587

The win tool is good for rapid prototyping and everyday Win32 scripting. I wouldn't recommend using it in distributed software, but no one is stopping you.

BUGS

Top

None known

AUTHOR

Top

Mike Accardo <mikeaccardo@yahoo.com> Comments and suggestions welcomed

COPYRIGHT

Top


win documentation  | view source Contained in the win distribution.