Skip to content

Instantly share code, notes, and snippets.

@bimmerlabs
Created December 22, 2018 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bimmerlabs/5441ec218888c3d656e2c159f6ed9353 to your computer and use it in GitHub Desktop.
Save bimmerlabs/5441ec218888c3d656e2c159f6ed9353 to your computer and use it in GitHub Desktop.
open($fh, "<", $path1.$file )
# if path1 fails, try path2 and set missing boolean to 1
or $missing = 1 and open($fh, "<", $path2.$file )
or warn "can't open $file in $path1, $path2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment