Make ?BEGIN PERL end ?END PERL work.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-04-06 15:58:21 -07:00
parent 9dd6f86c55
commit 5688dc77a3

View File

@ -2193,7 +2193,7 @@ sub read_a_line(;$$$) {
#
# Handle conditionals
#
if ( $currentline =~ /^\s*\?/ ) {
if ( $currentline =~ /^\s*\?(?:IF|ELSE|ENDIF)/ ) {
$omitting = process_conditional( $omitting, $currentline, $currentlinenumber );
$currentline='';
next;