Question Locked

Perl: Can range operator work in greedy way?

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to print the following:
START
111
222
333
END
asdfdak
asdfkjas
END

The normal way
print if(/START/ ... /END/)
will only print
START
111
222
333
END

But I want to print from START to the last END

Is there

1 reply

This discussion is closed to new replies.