> $target->{__QUERY_OBJ} = $cgi; # <-- works but not ideal Try this instead: $target->query->new($cgi); CGI.pm can create a new object based on an existing one. Mark -- http://mark.stosberg.com/blog/