in reply to How to chomp the last new line character from the file
where $x is the loop count$count = `wc -l < $file`; if($x==$count); { chomp($line); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to chomp the last new line character from the file
by davido (Cardinal) on Nov 24, 2011 at 10:38 UTC |