The code is probably commented out because it would't work. $! is magical and so setting its value in that way would have no effect (similar to how the data stored in a scalar is ignored while the scalar is tied).
The proper approach would be to just call SetLastError(...) which makes the error information available in $^E (which might not have been the case when this module was written).
- tye
In reply to Re^2: Learning Perl Chap 2 Win32::FileSecurity Help ($^E)
by tye
in thread Learning Perl Chap 2 Win32::FileSecurity Help
by punklrokk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |