theunixtips.com
perl : Remove empty lines from an array
Using grep and pattern matching, empty lines can be removed from an array in perl.