Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Perl script to print Next line after Pattern Matching

by vt220 (Scribe)
on Dec 20, 2011 at 16:33 UTC ( #944421=note: print w/replies, xml ) Need Help??


in reply to Perl script to print Next line after Pattern Matching

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.

  • Comment on Re: Perl script to print Next line after Pattern Matching

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://944421]
help
Chatterbox?
[stevieb]: can anyone recommend a good IDE for C programming that has *proper* vim plugin support? I've tried Eclipse, Netbeans etc and just can't get anything to work properly on Linux. I'm open to paying, but not on some monthly/yearly plan (just a one-off cost)
[stevieb]: I'd go with CLion as it's very similar to what I use already (intelliJ for Perl, Pycharm for Python), but it's a recurring fee every year

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2017-01-18 19:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (163 votes). Check out past polls.