in reply to Help with perl syntax

Try
next if /^\s*#(?!!)/;

-- Randal L. Schwartz, Perl hacker