sub build_sql { #process args; return $sql_block; } $sql = build_sql ( \@layout, \%myfilter );