my $path = '/path/to/this'; my $sql = 'INSERT INTO table SET ( path ) VALUES ( ? )'; my $STH = $DBH->prepare($sql); $STH->execute($path);