clean up last of code
Arthur Axel 'fREW' Schmidt [Fri, 28 May 2010 05:23:26 +0000 (00:23 -0500)]
slideshow.html

index d419494..6235f98 100644 (file)
@@ -702,13 +702,12 @@ __PACKAGE__->many_to_many(
    </div>
 
    <div class="slide">
-      <h1>using many_to_many</h1>
-      <pre>#!/usr/bin/perl
-
+      <h1>Using many_to_many</h1>
+      <pre>#!perl
 use Foo::Schema;
-
-my $author_model = Foo::Schema-&gt;resultset('Authors');
-my $author       = $author_model-&gt;search({
+my $schema    = Foo::Schema-&gt;connect(...);
+my $author_rs = $schema-&gt;resultset('Authors');
+my $author    = $author_model-&gt;search({
    name =&gt; 'Douglas Adams',
 })-&gt;single;
 $author-&gt;add_to_books({