my $variable = '/path/to/this'; my $sql = "INSERT INTO table SET ( path ) VALUES ( '$variable' )";