in reply to The art of error handling
This basically eval()s the try block, and the catch checks the value of $@. Is this good style? I would think that the eval() overhead would be prohibitive, that is why I have avoided using it.try { open(TEST, ">$file"); }; catch { push(@errors, "Failed to open $file"); return undef; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
aliasing keywords
by Anonymous Monk on Dec 20, 2000 at 03:09 UTC |