I'm trying to find better ways to do what the following code does. This could be applied to many situations, one of which could be to read the contents of an html page and processes certain tags. Anyone know a shorter, more economical method ?
thanks ever so much,for(@Input) { if(/$Start/) { $State = 1; } elsif(/$Finish/) { $State = 0; } else { $State = $State; } ($State) ? do_this() : do_that; }
In reply to Iteration condition... by abachus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |