/ Published in: Perl
The following incantation returns nonzero exit status when the terminating ?> of a PHP file, is followed by whitespace.
Expand |
Embed | Plain Text
perl -lne 'BEGIN{undef $/}; m/(\?>\s+)/ and exit 1' my_file.php
You need to login to post a comment.
