in reply to Re^2: how to put the value in proper format
in thread how to put the value in proper format
There is only one line in your file that contains the word "LINK" and that is in the second line of the header.
Furthermore, the script already prints the information for all lines where the LINK field shows the value of "up".
Whether you use Modern Perl is up to you, but if you do not use it, at least use strict; use warnings.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial Deltronics
|
|---|