If open fails, it will return the undefined value at which point the whatever is on the right side of the "or" will be evaluated.open( ARCHIVE1, ">>/directory/myfile") or mySpecificSubroutine();
In reply to Re: Doing more than printing "File Not Found" with a die command
by eieio
in thread Doing more than printing "File Not Found" with a die command
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |