- or download this
if ($file =~ /-\(lala\)-/) { ...
- or download this
my $skip = "/-\(lala\)-/";
if ($file =~ /$skip/)
- or download this
my $skip = "/-\\(lala\\)-/"; # protect the backslash for itself
if ($file =~ /$skip/) { ...
- or download this
my $skip = '/-\(lala\)-/'; # use singe quotes
if ($file =~ /$skip/) { ...
- or download this
my $skip = "/-(lala\-/";
if ($file =~ /\Q$skip/) { ... # quote it in the regexp
- or download this
my $skip = qr/-\(lala\)-/; # use precompiled regexps
if ($file =~ /$skip/) { ...