A
Andre Majorel
Could you suggest a succint way to make perl exit with a non
zero-status when the file on the command line can't be opened ?
perl -i -pe 's/foo/bar/' /some/file || echo "it failed"
Ugly is okay as long as it's succint (it's in a makefile and
it's best to keep it concise).
zero-status when the file on the command line can't be opened ?
perl -i -pe 's/foo/bar/' /some/file || echo "it failed"
Ugly is okay as long as it's succint (it's in a makefile and
it's best to keep it concise).