open (DATA, "test.txt") || die "Unable to open file: $!"; open (OUT, ">testout.txt") || die "Cannot create out file: $!"; while (<DATA>) { print OUT "\n" if /^10/; print OUT; } close (DATA) || die "Unable to close file: $!"; close (OUT) || die "Unable to close file: $!";
In reply to Re: exiting loops
by TedPride
in thread exiting loops
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |