in reply to Re: Learning Perl Chap 2 Win32::FileSecurity Help
in thread Learning Perl Chap 2 Win32::FileSecurity Help
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Learning Perl Chap 2 Win32::FileSecurity Help ($^E)
by BrowserUk (Patriarch) on May 09, 2006 at 17:27 UTC |