Hi cLive ;-),
It's an interesting problem for sure.
What if you were to sprinkle deliberate syntax errors throughout your code? For example, if you put ;+++; on the last line prior to the final 1; like so:
# Intentional error
;+++;
1;
Does that give you a syntax error with perl -c?
And if it doesn't, try sprinkling the same error (or one of your choice) throughout your code until you find the first place where it does cause an error ... then see what's between that line and the next one where the error should have occurred.
For example, it might turn out to be similar to ...
# This line causes an error
;+++;
# ...
print "Another section\n";
__END__
# ...
# Thought this would error, but doesn't
;+++;
print "Final section\n";
1;
s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
|