How to find a string match in the file and print all lines that are after her?

Have, for example, a file with this content:
AAA
BBB
CCC
DDD
EEE
GGG

The challenge is to find the line CCC and raspechatat only the contents of the file.

How to implement it in Perl?
Thank you.
July 9th 19 at 10:31
1 answer
July 9th 19 at 10:33
perl -ne '$print=1 if /pattern/; print if $print'

I then suggested that there's a more elegant solution:
perl -ne 'print if /pattern/ .. eof'

Find more questions by tags Perl