in reply to how to prevent open from dying
Try something like:
The call to die that you are referring to is not mandatory. You can execute whatever code you want after the or.open(FILE,"< some_darn_file_or_another") or do_something_else_besides_die(); | } sub do_something_else_besides_die { printf "Belch!\n"; }
Now, the real issue is you need to do some sort of error recovery upon a failed open such that you aren't trying to read/write to an unopened file handle.
|
|---|