Thank you,<br> Yes, I mean I'm using DBIC. I've tried your method. It did not give error, but, also did not insert into the table.<br> Do I miss something?<br> <br><br><b><i>Jonathan Rockway &lt;jon@jrock.us&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Will Smith wrote:<br>&gt; Hi,<br>&gt; Could someone please show me the syntax to create multiple records. For<br>&gt; example my table book has 3 fields : id (auto_increment), title, price.<br>&gt; On the template I have 3 rows of title/price. I want to enter 3 book<br>&gt; titles and prices and create at the same time.<br>&gt; With the old syntax, I can do something like<br>&gt; my $book = myapp::M::CDBI::Book::Shift-&gt;create(\%hash);<br><br>Are you really using CDBI?  If so, switch to DBIC and do:<br><br><br>   push @records, {title =&gt; "foo", price =&gt; "13.37"};<br>   # same thing a few more times...<br>   eval {<br>     
 $c-&gt;model('BookDB::Books')-&gt;create($_) for (@records);<br>   }<br>   die "Error: $@" if($@);<br><br>or something similar.<br><br>-- <br>package JAPH;use Catalyst qw/-Debug/;($;=JAPH)-&gt;config(name =&gt; do {<br>$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,<br>";$;"]-&gt;[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;-&gt;setup;<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></blockquote><br><p>&#32;__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com