I think the original ($_ !~ /^#\s/ or $_ !~ /^\s/) was wrong in two ways:
In reply to Re: Re: Re: Re: Re: Quarms with RegEx by busunsl in thread Quarms with RegEx by TraderX