That's close. You want instead:if ((/$beg/ .. /$end/) or (/$beg/ .. eof())) {
if (/$beg/ .. (/$end/ || eof())) { ... }
-- Randal L. Schwartz, Perl hacker
In reply to •Re: Between-text range operator problem
by merlyn
in thread Between-text range operator problem
by jlongino
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |