Hi

I am new to perl and getting confused with pattern matching.

How do i remove blank files from a file. For ex: i have a file as below

abc
xyz

def


123

Now i want to remove all blank lines and have an output as below
abc
xyz
def
123

How do i do this?

Regards
Sudhindra

Reply via email to