Link to home
Start Free TrialLog in
Avatar of m_for
m_for

asked on

removing blank lines from an array

Hello, I have read in a file and would like to run through the array and remove any blank lines.  
open(FILE, "Log.txt") or die("XP");
$/="\n";
@DATA = <FILE>;
close(FILE);

ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial