in reply to handle ERROR 32 using perl script

If what you're looking for is to resolve an error code to its description, then you can use the FormatMessage() function from the Win32 module. Example:

C:\>perl -MWin32 my $errorcode = 32; print Win32::FormatMessage($errorcode); ^Z The process cannot access the file because it is being used by another + process.

Update: Link fixed.

Replies are listed 'Best First'.
Re^2: handle ERROR 32 using perl script
by Anonymous Monk on Aug 06, 2010 at 09:18 UTC
    Or assign to $^E
    $ perl -le"warn $^E=32" The process cannot access the file because it is being used by another + process at -e line 1.