my $widgets_found; while (<>) { print; if (/^DATABASE:/) { print "Widgets found: $widgets_found\n"; $widgets_found = 0; } if ( $something ) { $widgets_found++; } }
In reply to Re: File parsing query
by Joost
in thread File parsing query
by kryptonite
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |