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);
open(FILE, "Log.txt") or die("XP");
$/="\n";
@DATA = <FILE>;
close(FILE);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.