in reply to Making my own control flow structure
In your case, you could introduce a new keyword (say 'tif' for tracked-if) and rewrite:
totif(xxx) { some; perl; code; }
The CPAN Filter::Simple module looks like a good place to start, but I don't really have any experience writing these things, to be honest.if(xxx) { some; perl; code; } else { print some; print perl; print code; }
|
|---|