diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-01-05 13:13:36 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-01-05 13:13:36 +0000 |
commit | 5a51db0500cb91f11a554807ca60350bc43f0e5b (patch) | |
tree | fe51df528f6cbc453d89c1fb790694c68e15f00b /t/op/regexp.t | |
parent | 69240efd70fee399a5232ed995c383b154000a08 (diff) | |
download | perl-5a51db0500cb91f11a554807ca60350bc43f0e5b.tar.gz |
Protect me (and my fellow muppets) from screens of "syntax errors" if
one accidentally feeds embed.fnc or t/op/re_tests to the perl
interpreter.
p4raw-id: //depot/perl@32839
Diffstat (limited to 't/op/regexp.t')
-rwxr-xr-x | t/op/regexp.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/op/regexp.t b/t/op/regexp.t index 7ad7d89bc9..8a13dd2158 100755 --- a/t/op/regexp.t +++ b/t/op/regexp.t @@ -77,9 +77,9 @@ my $test; TEST: foreach (@tests) { $test++; - if (!/\S/ || /^\s*#/) { + if (!/\S/ || /^\s*#/ || /^__END__$/) { print "ok $test # (Blank line or comment)\n"; - if (/\S/) { print $_ }; + if (/#/) { print $_ }; next; } chomp; |