<div dir="ltr">Why are you logged in as root?<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 30, 2015 at 9:14 AM, Richard Reina <span dir="ltr"><<a href="mailto:gatorreina@gmail.com" target="_blank">gatorreina@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>When I try:<br><br>#!/usr/bin/perl<br><br># In your Dancer app,<br>use Dancer::Plugin::SimpleCRUD;<br> <br># Simple example:<br>simple_crud(<br>    record_title => 'Widget',<br>    prefix => '/widgets',<br>    db_table => 'widgets',<br>    editable => 1,<br>); <br><br></div>I get:<br><br>root@gemini:/home/richard/dancer# perl simple_CRUD.pl<br>Use of uninitialized value in concatenation (.) or string at /usr/local/share/perl/5.14.2/Dancer/Plugin/Database/Core.pm line 199.<br><br></div>Any idea what I am doing wrong?<br><br><br><div><div><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-07-29 20:00 GMT-05:00 Doug Bell <span dir="ltr"><<a href="mailto:madcityzen@gmail.com" target="_blank">madcityzen@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Similar to the Dancer tutorial, here's a Mojolicious tutorial: <a href="http://mojolicio.us/perldoc/Mojolicious/Guides/Tutorial#Hello-World" target="_blank">http://mojolicio.us/perldoc/Mojolicious/Guides/Tutorial#Hello-World</a><div><br></div><div>If you have questions and want real-time help, the Chicago.PM has an IRC channel as well on <a href="http://irc.perl.org" target="_blank">irc.perl.org</a> #<a href="http://chicago.pm" target="_blank">chicago.pm</a> (<a href="http://mibbit.com/?channel=#chicago.pm&server=irc.perl.org" target="_blank">http://mibbit.com/?channel=%23chicago.pm&server=irc.perl.org</a>), though it is kind of slow (I'm preaction). There are Catalyst (#catalyst), Dancer (#dancer), and Mojolicious (#mojo) help channels on <a href="http://irc.perl.org" target="_blank">irc.perl.org</a> as well, and mailing lists for both if e-mail is better.</div><div><br><div>
<span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>Doug Bell</div><div><a href="mailto:madcityzen@gmail.com" target="_blank">madcityzen@gmail.com</a></div><div><br></div></span><br>

</div>
<br><div><blockquote type="cite"><div><div><div>On Jul 29, 2015, at 5:41 PM, Richard Reina <<a href="mailto:gatorreina@gmail.com" target="_blank">gatorreina@gmail.com</a>> wrote:</div><br></div></div><div><div dir="auto"><div><div><div>Alan,</div><div><br></div><div>For this thorough and thoughtful reply. The dancer tutorial looks less intimidating than the catalyst examples I looked at. I will get started by trying to create a simple CRUD page that will allow me to play with a database. </div><div><br></div><div>Thank you<br><br><div><br></div></div><div><br>El jul 29, 2015, a las 4:35 PM, Alan Mead <<a href="mailto:amead2@alanmead.org" target="_blank">amead2@alanmead.org</a>> escribió:<br><br></div></div></div><blockquote type="cite"><div><div><div>
  
    
  
  
    Web development is quite different from an app running on a server
    or desktop. Part of the reason that frameworks seem different is
    driven by this environmental difference which is inevitable. <br>
    <br>
    I can see why someone who knows well Perl might not like the idea of
    using a framework, because learning the framework is almost like
    learning to code a new language (in a way).  But consider that if
    you were to re-invent the same wheel, you would make a number of
    mistakes that the framework builders have already mastered. Also,
    the frameworks will already have a number of features that you can
    just mix in. If you re-invent the wheel, you'll have to re-invent
    each feature that you want to add.  For example, authentication
    isn't a trivial issue. You haven't mentioned authentication, but I
    assume you don't want everyone on the Internet to be able to edit
    your clients' records. Any framework is likely to have
    authentication built in.  Another example: a CRUD website is really,
    really common so you should find it very easy... I found this page
    that describes a sample Dancer app that seems to do at least some of
    what you want:<br>
    <br>
    <a href="http://advent.perldancer.org/2011/2" target="_blank">http://advent.perldancer.org/2011/2</a><br>
    <br>
    Another emphasis of modern frameworks is making it really easy to
    use.  The page above shows you how to run the Dancer app using an
    embedded webserver.  So, you don't need to learn about web servers,
    etc.; you can dive right in.<br>
    <br>
    Dreamweaver is fine for creating the HTML but any approach to
    building a dynamic website is going to require that you learn enough
    HTML to create templates. In the example app described above, the
    templates are in the /view folder.  If you've mastered Perl and SQL,
    HTML isn't going to be a big problem, but there's no avoiding it.<br>
    <br>
    -Alan<br>
    <br>
    <br>
    <div>On 7/29/2015 3:48 PM, Richard Reina
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div>
      <div dir="ltr">Your response if good. It's that I don't really
        understand what a framework is. I've built a website with
        dreamweaver (without knowing any html). Now I would just like to
        build another small site that links to a MySQL database. I see a
        lot of people use php but since I already know perl and DBI I
        figured I could go that route. I'm just confused about what
        these frameworks are (catalyst, mojolicious, dancer) and how
        they fit in. Maybe I can hire a reasonably priced tutor ;)<br>
        <br>
      </div>
      </div></div><div class="gmail_extra"><br>
        <div class="gmail_quote"><div><div>2015-07-29 15:34 GMT-05:00 Alan Mead <span dir="ltr"><<a href="mailto:amead2@alanmead.org" target="_blank">amead2@alanmead.org</a>></span>:<br>
          </div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"><div><div> Well, I don't want to
              discourage you (or be a jerk) but when you state that you
              "don't know HTML" it seems like any web-based project is
              going to be way, way, way over your head. <br>
              <br>
              There are a million ways to accomplish the site you want. 
              Using a framework would be better for many people, but
              you'd have to learn the framework.  If you want to learn
              as little as possible, then you might want to make some
              simple CGI scripts but that approach will require learning
              about how Apache works (at least a bit). You could also
              use PHP.<span><font color="#888888"><br>
                  <br>
                  -Alan</font></span>
              </div></div><div>
                <div><div><div><br>
                  <br>
                  <br>
                  <div>On 7/29/2015 3:14 PM, Richard Reina wrote:<br>
                  </div>
                  </div></div><blockquote type="cite"><div><div>
                    <div dir="ltr">Wow just took a look at catalyst.
                      Seems easier to just stick with Dreamweaver and
                      access my MySQL tables with php -- if you are
                      saying I can't do so with perl.<br>
                      <br>
                      <br>
                    </div>
                    </div></div><div class="gmail_extra"><br>
                      <div class="gmail_quote"><div><div>2015-07-29 12:52
                        GMT-05:00 Alan Mead <span dir="ltr"><<a href="mailto:amead2@alanmead.org" target="_blank">amead2@alanmead.org</a>></span>:<br>
                        </div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000"><div><div>
                            Richard,<br>
                            <br>
                            You'll need to learn enough HTML to
                            transform your Dreamweaver output files into
                            templates. There are many ways to do this
                            but you probably want a framework like
                            Mojolicious or Catalyst.  I see that the
                            Catalyst tutorial includes the kind of
                            website you want to build (as "CRUD"):<br>
                            <br>
                            <a href="https://metacpan.org/pod/Catalyst::Manual::Tutorial" target="_blank">https://metacpan.org/pod/Catalyst::Manual::Tutorial</a><br>
                            <a href="https://metacpan.org/pod/Catalyst::Manual::Tutorial::04_BasicCRUD" target="_blank">https://metacpan.org/pod/Catalyst::Manual::Tutorial::04_BasicCRUD</a><br>
                            <br>
                            I'm also sure you could do this using
                            Mojolicious.  But, again, you're SOL unless
                            you're willing to learn how to work with
                            these technologies.<br>
                            <br>
                            -Alan
                            <div>
                              <div><br>
                                <br>
                                <br>
                                <br>
                                <div>On 7/29/2015 11:55 AM, Richard
                                  Reina wrote:<br>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div>
                                  <div dir="ltr">
                                    <div>
                                      <div>I do not know HTML. I have
                                        created a website with
                                        dreamweaver that mostly just
                                        looks pretty and and jumps to
                                        different pages on a site. I
                                        have also written a database app
                                        with perl->MySQL that users
                                        on a small LAN can use to enter
                                        and query data. However, it is
                                        displayed on linux consoles
                                        using rudimentary menu apps
                                        based on curses. I would like to
                                        create a website that would
                                        allow users to enter and query
                                        data from MySQL databases and
                                        carry out functions such as
                                        updating users via email when
                                        changes are made. Since I don't
                                        know HTML or Apache can I just
                                        use dreamweaver and somehow
                                        enter perl code to talk to
                                        MySQL? Or is there a better and
                                        easier way for me to go about
                                        this?<br>
                                        <br>
                                      </div>
                                      Thanks for any ideas.<br>
                                      <br>
                                    </div>
                                    Richard  <br>
                                  </div>
                                  <br>
                                  <fieldset></fieldset>
                                  <br>
                                </div>
                              </div>
                              <pre>_______________________________________________
Chicago-talk mailing list
<a href="mailto:Chicago-talk@pm.org" target="_blank">Chicago-talk@pm.org</a>
<a href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a></pre>
                            </blockquote>
                            <br>
                            </div></div><pre cols="72"><div><div>-- 

Alan D. Mead, Ph.D.
President, Talent Algorithms Inc.

science + technology = better workers

+815.588.3846 (Office)
+267.334.4143 (Mobile)

</div></div><a href="http://www.alanmead.org/" target="_blank">http://www.alanmead.org</a><span>

Announcing the Journal of Computerized Adaptive Testing (JCAT), a
peer-reviewed electronic journal designed to advance the science and
practice of computerized adaptive testing: <a href="http://www.iacat.org/jcat" target="_blank">http://www.iacat.org/jcat</a></span></pre>
                          </div><span>
                          <br>
_______________________________________________<br>
                          Chicago-talk mailing list<br>
                          <a href="mailto:Chicago-talk@pm.org" target="_blank">Chicago-talk@pm.org</a><br>
                          <a href="http://mail.pm.org/mailman/listinfo/chicago-talk" rel="noreferrer" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a><br>
                        </span></blockquote>
                      </div>
                      <br>
                    </div><span>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
Chicago-talk mailing list
<a href="mailto:Chicago-talk@pm.org" target="_blank">Chicago-talk@pm.org</a>
<a href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a></pre>
                  </span></blockquote>
                  <br>
                  <pre cols="72"><span>-- 

Alan D. Mead, Ph.D.
President, Talent Algorithms Inc.

science + technology = better workers

+815.588.3846 (Office)
+267.334.4143 (Mobile)

</span><a href="http://www.alanmead.org/" target="_blank">http://www.alanmead.org</a><span>

Announcing the Journal of Computerized Adaptive Testing (JCAT), a
peer-reviewed electronic journal designed to advance the science and
practice of computerized adaptive testing: <a href="http://www.iacat.org/jcat" target="_blank">http://www.iacat.org/jcat</a></span></pre>
                </div>
              </div>
            </div><span>
            <br>
            _______________________________________________<br>
            Chicago-talk mailing list<br>
            <a href="mailto:Chicago-talk@pm.org" target="_blank">Chicago-talk@pm.org</a><br>
            <a href="http://mail.pm.org/mailman/listinfo/chicago-talk" rel="noreferrer" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a><br>
          </span></blockquote>
        </div>
        <br>
      </div><span>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Chicago-talk mailing list
<a href="mailto:Chicago-talk@pm.org" target="_blank">Chicago-talk@pm.org</a>
<a href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a></pre>
    </span></blockquote>
    <br>
    <pre cols="72"><span>-- 

Alan D. Mead, Ph.D.
President, Talent Algorithms Inc.

science + technology = better workers

+815.588.3846 (Office)
+267.334.4143 (Mobile)

</span><a href="http://www.alanmead.org/" target="_blank">http://www.alanmead.org</a><span>

Announcing the Journal of Computerized Adaptive Testing (JCAT), a
peer-reviewed electronic journal designed to advance the science and
practice of computerized adaptive testing: <a href="http://www.iacat.org/jcat" target="_blank">http://www.iacat.org/jcat</a></span></pre>
  

</div></blockquote><span><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Chicago-talk mailing list</span><br><span><a href="mailto:Chicago-talk@pm.org" target="_blank">Chicago-talk@pm.org</a></span><br><span><a href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a></span></div></blockquote></span></div><span>_______________________________________________<br>Chicago-talk mailing list<br><a href="mailto:Chicago-talk@pm.org" target="_blank">Chicago-talk@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a></span></div></blockquote></div><br></div></div><br>_______________________________________________<br>
Chicago-talk mailing list<br>
<a href="mailto:Chicago-talk@pm.org" target="_blank">Chicago-talk@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/chicago-talk" rel="noreferrer" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Chicago-talk mailing list<br>
<a href="mailto:Chicago-talk@pm.org">Chicago-talk@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/chicago-talk" rel="noreferrer" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a><br></blockquote></div><br><br clear="all"><br><br></div></div></div>