Commits

Anonymous committed 9c895ac

Merged from r470 of the trunk.

Comments (0)

Files changed (15)

docs/more-updates-2009-08-03.txt

+I thought the Perl Beginners' Site - http://perl-begin.org/ 
+was perfect after the last update, but boy I was wrong. A quick review and 
+critique of the site by a certain prominent Perl developer revealed many
+issues with it, and afterwards I had found stuff that I found lacking. So 
+here's what has changed.
+
+We're now mirroring the public domain "Perl for Newbies" tutorial on
+http://perl-begin.org/tutorials/perl-for-newbies/ as well as the GFDLed book
+"Impatient Perl" by Greg London ( http://www.greglondon.com/ ). Their
+presence on the site was done in order to preserve Perl-Begin's common look 
+and feel, and to make sure people would be able to access them without
+having to go to a different site, which may be blocked by over-zealous
+web-filters. We hope to mirror other freely distributable material that
+may prove useful to beginners on Perl-Begin in the future.
+
+The "call-for-action" notice at the beginning was changed to 
+"Learn Perl Now!" and now appears on all the pages.
+
+We also fixed several look and style glitches.   
+
+There are also several corrections to the text and the hyperlinks.
+
+Stack Overflow was added to http://perl-begin.org/web-forums/ .
+
+There are now mentionings of two new topical books at
+http://perl-begin.org/books/topics/ - 
+"Perl & LWP" and "Programming the Perl DBI".
+
+Finally, the "About this site" page at http://perl-begin.org/about.html 
+was updated and made more modern.
+
+We hope you enjoy the new site. If you like it, please recommend it to
+your friends - if you don't - let us know and we'll see what we can do. Unless
+mentioned otherwise, all the material on http://perl-begin.org/ is made
+available under the Creative Commons Attribution Licence (CC-by) for almost
+unlimited distribution and re-use.
+
                     'title' => "Debugging Perl Programs",
                 },
                 {
+                    'text' => "Hashes",
+                    'url' => "topics/hashes/",
+                    'title' => "Hashes / Associative Arrays for Mapping Keys to Values",
+                },
+                {
                     'text' => "Object Oriented Perl",
                     'url' => "topics/object-oriented/",
                     'title' => "Object Oriented Programming and Design in Perl",

lib/tutorials/perl-for-newbies/lect1-all-in-one/expressions/operators.out.txt

+5 + 6 = 11
+(2 + 3) * 6 = 30
+2 + 3 * 6 = 20
+2 raised to the power of 8 is 256
+10-5 = 5. 5-10 = -5
+2/3 = 0.666666666666667

lib/tutorials/perl-for-newbies/lect1-all-in-one/expressions/substr.out.txt

+ong string
+ lon
+A long

lib/tutorials/perl-for-newbies/lect1-all-in-one/index.html

 The output of this program is:
 </p>
 <div class="code_block"><pre>
-
+5 + 6 = 11
+(2 + 3) * 6 = 30
+2 + 3 * 6 = 20
+2 raised to the power of 8 is 256
+10-5 = 5. 5-10 = -5
+2/3 = 0.666666666666667
 </pre></div>
 <p>
 The operators have the same precendence as their mathemtical equivalents. The
 The output of this program is:
 </p>
 <div class="code_block"><pre>
-
+ong string
+ lon
+A long
 </pre></div>
 <p>( You may notice that the position of the first character is 0. )</p>
 <p>
 </li>
 <li>
 A special value called <tt>undef</tt>. This is the default value of every
-variable that was not initialised before it was accessed.
+variable that was not initialized before it was accessed.
 </li>
 </ol>
 <p>

lib/tutorials/perl-for-newbies/lect2-all-in-one/index.html

 11.2. Setting Breakpoints and Continuing
 </h1>
 <p>
-When one places a breakpoint on a certain line in a program, he indicates
-that the execution of the program must be stopped when this line is
+When the user places a breakpoint on a certain line in a program, they
+insruct the debugger to stop the execution of the program when this line is
 reached. Then, one can cause the program to run freely using the continue
 command, and have it stop only at this line.
 </p>

lib/tutorials/perl-for-newbies/lect3-all-in-one/index.html

     <span class="Statement">bless</span> <span class="Identifier">$self</span>, <span class="Identifier">$class</span>;
 
     <span class="Comment"># Now we can retrieve the other arguments passed to the </span>
-    <span class="Comment"># construtor.</span>
+    <span class="Comment"># constructor.</span>
 
     <span class="Statement">my</span> <span class="Identifier">$name</span> = <span class="Statement">shift</span> || <span class="Constant">&quot;</span><span class="Constant">Fooish</span><span class="Constant">&quot;</span>;
     <span class="Statement">my</span> <span class="Identifier">$number</span> = <span class="Statement">shift</span> || <span class="Constant">5</span>;

lib/tutorials/perl-for-newbies/lect3-all-in-one/objects/making/Foo.orig.pm

     bless $self, $class;
 
     # Now we can retrieve the other arguments passed to the 
-    # construtor.
+    # constructor.
     
     my $name = shift || "Fooish";
     my $number = shift || 5;

lib/tutorials/perl-for-newbies/lect3-all-in-one/objects/making/Foo.pm

     bless $self, $class;
 
     # Now we can retrieve the other arguments passed to the 
-    # construtor.
+    # constructor.
     
     my $name = shift || "Fooish";
     my $number = shift || 5;

lib/tutorials/perl-for-newbies/lect3-all-in-one/objects/making/Foo2/Foo.pm

     bless $self, $class;
 
     # Now we can retrieve the other arguments passed to the 
-    # construtor.
+    # constructor.
     
     my $name = shift || "Fooish";
     my $number = shift || 5;

lib/tutorials/perl-for-newbies/lect3-all-in-one/objects/making/inheritance/Foo.pm

     bless $self, $class;
 
     # Now we can retrieve the other arguments passed to the 
-    # construtor.
+    # constructor.
     
     my $name = shift || "Fooish";
     my $number = shift || 5;

src/learn/myth-dispelling/index.html.wml

 <latemp_subject "Why Perl isn't Bad?" />
 
 <p>
-It's not uncommon to <b>hear a lot of criticism</b> about Perl. In fact it's 
+It's not uncommon to <b>hear a lot of criticism</b> about Perl. In fact, it's 
 very common. Among the things you can hear:
 </p>
 

src/topics/hashes/The_Hash_Cookbook.odp

Binary file added.

src/topics/hashes/index.html.wml

+#include '../template.wml'
+#include "beginning-perl.wml"
+#include "perl-for-newbies.wml"
+
+<latemp_subject "Perl Hashes (a.k.a Associative Arrays or Maps)" />
+
+<h2 id="intro">Introduction</h2>
+
+<p>
+<b>TODO</b>: FILL IN.
+</p>
+
+<h2 id="tutorials">Tutorials</h2>
+
+<h3 id="hash-cookbook"><a href="The_Hash_Cookbook.odp">The 
+Hash Cookbook</a></h3>
+
+<p>
+This is a presentation (in OpenDocument format) about hashes by "Jerusalem 
+Perl Monger" that was given by her at the 
+<a href="http://act.perl.org.il/ilpw2007/">Israeli 
+Perl Workshop of 2007</a> . It covers the main uses for hashes, with
+many code excerpts.
+</p>
+
+<beginning_perl_entry>
+
+<p>
+The 11th chapter of this book for Perl beginners (including absolute beginners)
+covers Objects. This book was written by one of the foremost Perl experts.
+</p>
+
+</beginning_perl_entry>
+
+<perl_for_newbies_entry>
+
+<p>
+The second talk in the series discusses hashes.
+</p>
+
+</perl_for_newbies_entry>
+

src/topics/index.html.wml

 Learn about how to write classes, objects, and other concepts of
 Object-Oriented Programming in Perl.
 </p>
+
+<h3 id="hashes"><a href="hashes/">About Hashes</a></h3>
+
+<p>
+Hashes (also known as "associative arrays", "maps" or "dictionaries") are
+one of Perl's three fundamental data structures and their least understood
+one. This page gives some resources for learning about hashes. 
+</p>