#build a dynamic sql statement my $Sql_str = &BuildSQLString($cMssFactBag); print $Sql_str; #I print here I get no SQL statement