in reply to Removing blank lines from array
should be written as@info=<READ>; @info=grep(!/^ +$/, @info);
You're not catching the newline in your regex. *shrugs*@info = grep {!/^\s+$/} map { chomp; $_ } <READ>;
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|