in reply to How to Extract Nested IF/THEN elements
$_ = "
IF(B) anytext ENDIF
IF(C) anytext ENDIF
and on ....
@( = ('(','');
@) = (')','');
warn $@ if $@=~/unmatched/;
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (334 votes). Check out past polls.