go ahead... be a heretic | |
PerlMonks |
Re: Perl script to print Next line after Pattern Matchingby vt220 (Scribe) |
on Dec 20, 2011 at 16:33 UTC ( [id://944421]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|