You seem to flip-flop whether or not you are going to use "$_" or "$line" inside the while loop. The data is read into variable "$line" but you chomp "$_". The "if" statement is doing nothing with "$line" and neither is named on the print statement.
In your case, I would follow the previous advice of producing a tab delimited file for import into Excel.
In reply to Re: Perl script to print Next line after Pattern Matching
by vt220
in thread Perl script to print Next line after Pattern Matching
by rajkrishna89
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |