happy new year to all of you.<br> <br> thanks all for your support. Back to the question, (which I guess, will irritate some catalyst/perl gurus - but please be patient for learners), I've been able to add multiple records with "PRE" assigned values. But that's not my purpose. I need to add multiple rows that have the same name on the html. I tried several ways, but none was good.<br> <br> my $book;<br> my $record; <br> foreach $book ( @{$c->request->params->{book}}){<br> <br> push @records, {title => $book, price => $price };<br> };<br> <br> eval{<br> $c->model('bookDB::Book')->create($_) foreach (@records);<br> };<br><br> ---- this gives me the compling error: Global symbol "@records" requires explicit package name<br> <br><b><i>Juan Miguel Paredes
<juan.paredes@gmail.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On 12/29/06, Will Smith <willbelair @yahoo.com=""> wrote:<br>> Thank you,<br>> Yes, I mean I'm using DBIC. I've tried your method. It did not give error,<br>> but, also did not insert into the table.<br>> Do I miss something?<br>><br><br>Hi, Will!<br><br>Are the correct SQL statements being generated? (try export<br>DBI_TRACE=1 or something like that)<br><br>Is a COMMIT missing? (check AutoCommit on your dsn and/or DBD::*<br>database specific docs, e.g. for PostgreSQL/Oracle it is off by<br>default, IIRC)<br><br>Greetings!<br><br>_______________________________________________<br>List: Catalyst@lists.rawmode.org<br>Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst<br>Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/<br>Dev site:
http://dev.catalyst.perl.org/<br></willbelair></blockquote><br><p> __________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com