Perl: Can range operator work in greedy way? - TechRepublic
Question
September 30, 2009 at 08:45 AM
gary.liu1119

Perl: Can range operator work in greedy way?

by gary.liu1119 . Updated 16 years, 8 months ago

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

This discussion is locked

All Comments