Skip to content

Instantly share code, notes, and snippets.

@tynovsky
Created September 21, 2017 17:23
Show Gist options
  • Save tynovsky/c546d94b261eecd302a145a6d2e2d0c2 to your computer and use it in GitHub Desktop.
Save tynovsky/c546d94b261eecd302a145a6d2e2d0c2 to your computer and use it in GitHub Desktop.
check syntax without dependencies
BEGIN {
push @INC,
sub { print "Oops: There was an error looking for $_[1]\n"; return \'1' };
}
1
# perl -Mshallow -c yourscript.pl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment