in reply to How can I print part of a line between two different lines
1. Read the line one by one from input file. You have to read more on +how to read input files in perl. 2. If the line matches word sample_char, then split it based on = and +take the second part. You have to read more on regular expression and + split functions to implement this. 3. Store the second part in an array. 4. Once all the lines are completed, display the output from array
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I print part of a line between two different lines
by ramukavuri (Initiate) on Jan 27, 2017 at 12:07 UTC | |
by madtoperl (Hermit) on Jan 27, 2017 at 14:09 UTC |