you can even change that second condition to 0: if ( (m/^alpha$/ .. 0 ) > 1)while (<$fh>) { if ( (m/^alpha$/ .. eof($fh) ) > 1) { # everything between alpha and end of file } }
In reply to Re: A way to avoid repeated conditional loops
by tinita
in thread A way to avoid repeated conditional loops
by Deus Ex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |