Only in lib/CGI: Cookie
diff -ur ../old/CGI-FormBuilder-3.05/lib/CGI/FormBuilder.pm lib/CGI/FormBuilder.pm
--- ../old/CGI-FormBuilder-3.05/lib/CGI/FormBuilder.pm	2006-12-18 02:46:28.000000000 -0800
+++ lib/CGI/FormBuilder.pm	2007-01-31 15:40:25.000000000 -0800
@@ -12,6 +12,8 @@
 use strict;
 use warnings;
 no  warnings 'uninitialized';
+use Scalar::Util qw(weaken);
+use Scalar::Util::Clone qw(clone);
 
 use CGI::FormBuilder::Util;
 use CGI::FormBuilder::Field;
@@ -275,7 +277,7 @@
         } else {
             # init a new one
             $fprop{name} = "$_";
-            $_ = $self->new_field(%fprop);
+            $_ = clone($self->new_field(%fprop));
         }
         debug 2, "push \@(@ftmp), $_";
         $self->{fieldrefs}{"$_"} = $_;
@@ -374,7 +376,7 @@
 
     # if we're still in here, we need to init a new field
     # push it onto our mail fields array, just like initfields()
-    my $f = $self->new_field(%$args);
+    my $f = clone($self->new_field(%$args));
     $self->{fieldrefs}{"$f"} = $f;
     push @{$self->{fields}}, $f;
     return $f->value;
@@ -403,7 +405,7 @@
             $args->{$k} = $v;
         }
     }
-
+    
     my $f = CGI::FormBuilder::Field->new($self, $args);
     debug 1, "created field $f";
     return $f;   # already set args above ^^^
Only in lib/CGI: Simple
Only in lib/CGI: Simple.pm
