1. Shlomi Fish
  2. perl-begin

Commits

Alan Haggai Alavi  committed 7e7c255

Replaced ... with HTML entity …

  • Participants
  • Parent commits 7f03f0b
  • Branches default

Comments (0)

Files changed (2)

File src/index.html.wml

View file
  • Ignore whitespace
 written very quickly, while still performing well in most cases. It is very 
 usual to <b>achieve in one line of Perl</b> what 
 <b>requires 100s of lines in C</b> and other languages. 
-<a href="$(ROOT)/learn/">Read more...</a>
+<a href="$(ROOT)/learn/">Read more&hellip;</a>
 </p>
 
 <h2 id="right-tool">The Right Tool for the Job</h2>

File src/tutorials/bad-elements/index.html.wml

View file
  • Ignore whitespace
 while (&lt;$my_fh&gt;)
 {
     my $line = $_;
-    \# Do something with $line...
+    \# Do something with $line&hellip;
 }
 </pre>
 
 {
     my $user = $_;
 
-    \# Process $user...
+    \# Process $user&hellip;
 }
 </pre>
 
 <pre>
 while (my $line = &lt;$my_fh&gt;)
 {
-    \# Do something with $line...
+    \# Do something with $line&hellip;
 }
 </pre>
 
 <pre>
 foreach my $user (@users)
 {
-    \# Process $user...
+    \# Process $user&hellip;
 }
 </pre>
 
 </bad_code>
 
 <p>
-Instead use the <tt>MyClass-&gt;new(...)</tt> notation:
+Instead use the <tt>MyClass-&gt;new(&hellip;)</tt> notation:
 </p>
 
 <pre>
 Some places where you have to use <tt>$_</tt> are <pdoc_f f="map">map</pdoc_f>,
 <pdoc_f f="grep">grep</pdoc_f> and other functions like that, but even in
 that case it might be desirable to set a lexical variable to the value of
-<tt>$_</tt> right away: <tt>map { my $line = $_; ... } @lines</tt>.
+<tt>$_</tt> right away: <tt>map { my $line = $_; &hellip; } @lines</tt>.
 </p>
 
 </item>
 
 </item>
 
-<item id="qx_for_command_execution" h="`...` or qx// for Executing Commands">
+<item id="qx_for_command_execution" h="`&hellip;` or qx// for Executing Commands">
 
 <p>
-Some people are tempted to use backticks (<tt>`...</tt>) or <tt>qx/.../</tt>
+Some people are tempted to use backticks (<tt>`&hellip;</tt>) or <tt>qx/&hellip;/</tt>
 for executing commands for their side-effects. E.g:
 </p>
 
 </bad_code>
 
 <p>
-However, this is not idiomatic because <tt>`...`</tt> and <tt>qx/.../</tt> are
+However, this is not idiomatic because <tt>`&hellip;`</tt> and <tt>qx/&hellip;/</tt> are
 used to trap a command's output and to return it as a big string or as a list
 of lines. It would be a better idea to use
 <pdoc_f f="system">system()</pdoc_f> or to seek more idiomatic Perl-based
 </p>
 
 <p>
-Some people even go and ask how to make the <tt>qx/.../</tt> output go to
+Some people even go and ask how to make the <tt>qx/&hellip;/</tt> output go to
 the screen, which is a clear indication that they want to use system().
 </p>
 
     my $proto = shift;
     my $class = ref($proto) || $proto;
     my $self  = {};
-    ...
+    &hellip;
 }
 </bad_code>
 
     my $self  = {};
     
     bless $self, $class;
-    ...
+    &hellip;
 }
 </pre>
 
 <p>
 Which will disable it and will just allow 
-<tt>ref($my_object_instance)-&gt;new(...)</tt>. If you need a clone method,
+<tt>ref($my_object_instance)-&gt;new(&hellip;)</tt>. If you need a clone method,
 then code one called "clone()" and don't use "new" for that.
 </p>