Remove Empty Lines and Comments

sed '/ *#/d; /^$/d' example.pl