eval {open (FH, "directory/myfile") || die "Can Not open the file ($!) +";}; if ($@){ # handle your exception # maybe check contents of $@ to decide what to do } @array = <FH>; close(FH);
In reply to Re: Exception handling - try Catch Method
by Rakeswell
in thread Exception handling - try Catch Method
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |