in reply to Searching for variable then blank lines
P.S. Use these three lines instead of declaring the array @lines and the entire foreach loop if you wish to test this suggestion. It doesn't solve your problem about understanding conditional looping, but it does provide another way to solve the problem at hand.my $slurped = do {local $/; <SERVER>}; # EEK! i see my mistake now! this line #my ($temp) = $slurped =~ /($arc.*)\n\n/sm; # should have been my ($temp) = $slurped =~ /^($arc.*)\n\n/sm; print OUTPUT $temp;
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: Searching for variable then blank lines
by tstock (Curate) on Mar 14, 2002 at 06:14 UTC | |
by jeffa (Bishop) on Mar 14, 2002 at 12:12 UTC | |
by rscott212 (Sexton) on Mar 14, 2002 at 19:38 UTC | |
by jeffa (Bishop) on Mar 15, 2002 at 15:05 UTC |