$dataline =~ /\Q$variable\E/ [download]
In reply to Re: Regex from a variable... by John M. Dlugosz in thread Regex from a variable... by Anonymous Monk