synapse0 has asked for the wisdom of the Perl Monks concerning the following question:

There was a post recently that had a mentioning for style for open().. Often, when using open in a place where it's ok to fail the open attempt i use:
if (open(FH, "< $file") { do fun stuff with file close(FH); } else { log error to some log file possibly display error message } continue on ..
Now, most of everything i see uses a die for open failure.. I know there are other things you can do as well, my question is, in the world of Real Perl Programming(TM) how horribly terrible is it to use an if else for a file open like that? what is the most elegant way to do that, if you don't want to exit on a failure? Thanks for the info,