my $column_2 = '= t.col2'; my %where = ( 't.col1' => \$column_2, ); my ($stmt) = $sql->where( \%where); print $stmt,"\n";