I am just starting to learn Perl, so I dont even know if this quesiton makes sense.
If I have an input file that looks like this:
Alpha
Test
Test
Beta
Test
Test
What is the easiest way to have it print only the data assoicated with Alpha? When I try to use something similar to this $_ =~ /\\Alpha\\/ it will only print the line with Alpha on it obviously. Is there a way to tell Perl to print following lines?
If I have an input file that looks like this:
Alpha
Test
Test
Beta
Test
Test
What is the easiest way to have it print only the data assoicated with Alpha? When I try to use something similar to this $_ =~ /\\Alpha\\/ it will only print the line with Alpha on it obviously. Is there a way to tell Perl to print following lines?
