http://www.perlmonks.org?node_id=1008455


in reply to Re: Removing blank/empty lines
in thread Removing blank/empty lines

Good idea, but back-to-front! In a regex, ^ matches the beginning of a line, and $ matches the end of a line. See Regular Expressions.

(I always used to get these mixed up, too. Maybe it’s because $ is generally used as a sigil, and therefore we get used to seeing it come first in identifiers?)

Update: I see that marquezc329 has already corrected this in Re: Removing blank/empty lines.

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,