Commits

Shlomi Fish  committed ea64ca5

Add more.

  • Participants
  • Parent commits 7a07c67

Comments (0)

Files changed (1)

File src/topics/files-and-directories/index.html.wml

     use strict;
     use warnings;
 
-    print PerlBegin::TopicsExamples->new(
+    # Examples generator:
+    my $ex_gen = PerlBegin::TopicsExamples->new(
         {
         }
-    )->html_with_title(
+    );
+
+    print $ex_gen->html_with_title(
         {
             title => "Copying a file",
             id_base => "copying_a_file",
         }
     );
 
-    print PerlBegin::TopicsExamples->new(
-        {
-        }
-    )->html_with_title(
+    print $ex_gen->html_with_title(
         {
             title => "Overwriting a file with text",
             id_base => "overwrite_a_file",
         }
     );
 
-    print PerlBegin::TopicsExamples->new(
-        {
-        }
-    )->html_with_title(
+    print $ex_gen->html_with_title(
         {
             title => "Processing the Lines of a File",
             id_base => "processing_lines_of_a_file",
         }
     );
 
-    print PerlBegin::TopicsExamples->new(
-        {
-        }
-    )->html_with_title(
+    print $ex_gen->html_with_title(
         {
             title => "Reading an entire UTF-8 file into a big variable",
             id_base => "string_slurp_utf8",
         }
     );
 
-    print PerlBegin::TopicsExamples->new(
-        {
-        }
-    )->html_with_title(
+    print $ex_gen->html_with_title(
         {
             title => "Appending to a File",
             id_base => "append_to_file",