my $start_delim = qr/<\!--text[se]\d{3}-->/; my $end_delim = qr/<\!--texte/; while (<$prfore>) { if (/$start_delim/) { do { $_ = <$prfore>; } while !eof and /$start_delim/; for ( ; !eof and !/$end_delim/; $_ = <$prfore>) { s/\D{5}\s+$/\n/; $linevalis .= $_; } } }
In reply to Re: Another reason for perl beginners to read perldocs
by thirdm
in thread Another reason for perl beginners to read perldocs
by Don Coyote
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |