"be consistent" | |
PerlMonks |
Re: opening missing file inside eval statementby PeterPeiGuo (Hermit) |
on Jan 08, 2011 at 21:03 UTC ( [id://881273]=note: print w/replies, xml ) | Need Help?? |
This is basically perl's way of throwing exceptions. What you put in "die" is essentially your exception. It might be beneficial for open to throw exception in some cases, but that's not always the case. The fact that perl leaves it to you to decide whether to throw exception, makes things flexible. Peter (Guo) Pei
In Section
Seekers of Perl Wisdom
|
|