As a little brainstormer, suppose you have a variable with the following test content:
|
|
Here is how you can print all odd lines from it:
|
|
Or, if you want all even lines, change the initial $f
value to 1:
|
|
As a little brainstormer, suppose you have a variable with the following test content:
|
|
Here is how you can print all odd lines from it:
|
|
Or, if you want all even lines, change the initial $f
value to 1:
|
|