In addition to the modules listed above, Perl for Win32 can use an additional set of functions from the Win32 extension. These functions provide useful tools for some Windows-specific tasks that don’t require their own modules. They are exported from the Win32 package with:
Many of these functions do not take arguments, and they return the value (or values) of the requested information, unless otherwise noted.
Returns the last error value generated by a call to a Win32 API function.
Returns the last error value generated by a call to a Win32 OLE API function.
Returns the build number of Perl for Win32.
Returns the username of the owner of the current Perl process.
Returns the Microsoft network node-name of the current machine.
Returns the name of the Microsoft network domain that the owner of the current Perl process is logged into.
Returns a string naming the filesystem type of the currently active drive.
Returns the current active drive and directory. This function does not return a UNC path, since the functionality required for such a feature is not available under Windows 95.
Sets the current active drive and directory to
newdir. This function does not work with UNC paths, since the functionality required for such a feature is not available under Windows 95.