Skip to content

Commit

Permalink
Update to perlfaq 5.0150041
Browse files Browse the repository at this point in the history
  • Loading branch information
ranguard committed Sep 29, 2012
1 parent b840928 commit 9600126
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 23 deletions.
4 changes: 2 additions & 2 deletions docs/learn/faq/perlfaq.html
Expand Up @@ -8,7 +8,7 @@
=> "Perl Frequently Asked Questions, Perl FAQ", => "Perl Frequently Asked Questions, Perl FAQ",
keywords => "perl, perl faq, perlfaq" keywords => "perl, perl faq, perlfaq"
}); });
perlfaq_version = 5.0150040; perlfaq_version = 5.0150041;
-%] -%]
<div class="pod"> <div class="pod">


Expand Down Expand Up @@ -1076,5 +1076,5 @@ <h1 id="AUTHOR-AND-COPYRIGHT">AUTHOR AND COPYRIGHT</h1>


<p>This document is available under the same terms as Perl itself. Code examples in all the perlfaq documents are in the public domain. Use them as you see fit (and at your own risk with no warranty from anyone).</p> <p>This document is available under the same terms as Perl itself. Code examples in all the perlfaq documents are in the public domain. Use them as you see fit (and at your own risk with no warranty from anyone).</p>


<p><em>Version: 5.0150040</em></p></div> <p><em>Version: 5.0150041</em></p></div>


4 changes: 2 additions & 2 deletions docs/learn/faq/perlfaq1.html
Expand Up @@ -8,7 +8,7 @@
=> "Perl Frequently Asked Questions, Perl FAQ", => "Perl Frequently Asked Questions, Perl FAQ",
keywords => "perl, perl faq, perlfaq" keywords => "perl, perl faq, perlfaq"
}); });
perlfaq_version = 5.0150040; perlfaq_version = 5.0150041;
-%] -%]
<div class="pod"> <div class="pod">


Expand Down Expand Up @@ -213,5 +213,5 @@ <h1 id="AUTHOR-AND-COPYRIGHT">AUTHOR AND COPYRIGHT</h1>


<p>Irrespective of its distribution, all code examples here are in the public domain. You are permitted and encouraged to use this code and any derivatives thereof in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit to the FAQ would be courteous but is not required.</p> <p>Irrespective of its distribution, all code examples here are in the public domain. You are permitted and encouraged to use this code and any derivatives thereof in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit to the FAQ would be courteous but is not required.</p>


<p><em>Version: 5.0150040</em></p></div> <p><em>Version: 5.0150041</em></p></div>


4 changes: 2 additions & 2 deletions docs/learn/faq/perlfaq2.html
Expand Up @@ -8,7 +8,7 @@
=> "Perl Frequently Asked Questions, Perl FAQ", => "Perl Frequently Asked Questions, Perl FAQ",
keywords => "perl, perl faq, perlfaq" keywords => "perl, perl faq, perlfaq"
}); });
perlfaq_version = 5.0150040; perlfaq_version = 5.0150041;
-%] -%]
<div class="pod"> <div class="pod">


Expand Down Expand Up @@ -193,5 +193,5 @@ <h1 id="AUTHOR-AND-COPYRIGHT">AUTHOR AND COPYRIGHT</h1>


<p>Irrespective of its distribution, all code examples here are in the public domain. You are permitted and encouraged to use this code and any derivatives thereof in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit to the FAQ would be courteous but is not required.</p> <p>Irrespective of its distribution, all code examples here are in the public domain. You are permitted and encouraged to use this code and any derivatives thereof in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit to the FAQ would be courteous but is not required.</p>


<p><em>Version: 5.0150040</em></p></div> <p><em>Version: 5.0150041</em></p></div>


12 changes: 10 additions & 2 deletions docs/learn/faq/perlfaq3.html
Expand Up @@ -8,7 +8,7 @@
=> "Perl Frequently Asked Questions, Perl FAQ", => "Perl Frequently Asked Questions, Perl FAQ",
keywords => "perl, perl faq, perlfaq" keywords => "perl, perl faq, perlfaq"
}); });
perlfaq_version = 5.0150040; perlfaq_version = 5.0150041;
-%] -%]
<div class="pod"> <div class="pod">


Expand Down Expand Up @@ -417,6 +417,14 @@ <h2 id="Is-there-an-IDE-or-Windows-Perl-Editor-">Is there an IDE or Windows Perl


<p>Perl Editor by EngInSite is a complete integrated development environment (IDE) for creating, testing, and debugging Perl scripts; the tool runs on Windows 9x/NT/2000/XP or later.</p> <p>Perl Editor by EngInSite is a complete integrated development environment (IDE) for creating, testing, and debugging Perl scripts; the tool runs on Windows 9x/NT/2000/XP or later.</p>


</dd>
<dt>Kephra</dt>
<dd>

<p><a href="http://kephra.sf.net">http://kephra.sf.net</a></p>

<p>GUI Editor written in Perl using wxWidgets and Scintilla with lots of smaller features. Aims for an UI based on Perls principles like TIMTWTDI and &quot;easy thinkd should be ..&quot;.</p>

</dd> </dd>
<dt>Komodo</dt> <dt>Komodo</dt>
<dd> <dd>
Expand Down Expand Up @@ -1006,5 +1014,5 @@ <h1 id="AUTHOR-AND-COPYRIGHT">AUTHOR AND COPYRIGHT</h1>


<p>Irrespective of its distribution, all code examples here are in the public domain. You are permitted and encouraged to use this code and any derivatives thereof in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit to the FAQ would be courteous but is not required.</p> <p>Irrespective of its distribution, all code examples here are in the public domain. You are permitted and encouraged to use this code and any derivatives thereof in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit to the FAQ would be courteous but is not required.</p>


<p><em>Version: 5.0150040</em></p></div> <p><em>Version: 5.0150041</em></p></div>


6 changes: 3 additions & 3 deletions docs/learn/faq/perlfaq4.html
Expand Up @@ -8,7 +8,7 @@
=> "Perl Frequently Asked Questions, Perl FAQ", => "Perl Frequently Asked Questions, Perl FAQ",
keywords => "perl, perl faq, perlfaq" keywords => "perl, perl faq, perlfaq"
}); });
perlfaq_version = 5.0150040; perlfaq_version = 5.0150041;
-%] -%]
<div class="pod"> <div class="pod">


Expand Down Expand Up @@ -1094,7 +1094,7 @@ <h2 id="What-is-the-difference-between-a-list-and-an-array-">What is the differe
wash_animals( qw( dog cat bird ) ); wash_animals( qw( dog cat bird ) );
wash_animals( @animals );</pre> wash_animals( @animals );</pre>


<p>Array operations, which change the scalars, rearranges them, or adds or subtracts some scalars, only work on arrays. These can&#39;t work on a list, which is fixed. Array operations include <code>shift</code>, <code>unshift</code>, <code>push</code>, <code>pop</code>, and <code>splice</code>.</p> <p>Array operations, which change the scalars, rearrange them, or add or subtract some scalars, only work on arrays. These can&#39;t work on a list, which is fixed. Array operations include <code>shift</code>, <code>unshift</code>, <code>push</code>, <code>pop</code>, and <code>splice</code>.</p>


<p>An array can also change its length:</p> <p>An array can also change its length:</p>


Expand Down Expand Up @@ -2198,5 +2198,5 @@ <h1 id="AUTHOR-AND-COPYRIGHT">AUTHOR AND COPYRIGHT</h1>


<p>Irrespective of its distribution, all code examples in this file are hereby placed into the public domain. You are permitted and encouraged to use this code in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit would be courteous but is not required.</p> <p>Irrespective of its distribution, all code examples in this file are hereby placed into the public domain. You are permitted and encouraged to use this code in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit would be courteous but is not required.</p>


<p><em>Version: 5.0150040</em></p></div> <p><em>Version: 5.0150041</em></p></div>


8 changes: 4 additions & 4 deletions docs/learn/faq/perlfaq5.html
Expand Up @@ -8,7 +8,7 @@
=> "Perl Frequently Asked Questions, Perl FAQ", => "Perl Frequently Asked Questions, Perl FAQ",
keywords => "perl, perl faq, perlfaq" keywords => "perl, perl faq, perlfaq"
}); });
perlfaq_version = 5.0150040; perlfaq_version = 5.0150041;
-%] -%]
<div class="pod"> <div class="pod">


Expand Down Expand Up @@ -220,11 +220,11 @@ <h2 id="How-do-I-change-delete-or-insert-a-line-in-a-file-or-append-to-the-begin
<pre class="brush: pl; class-name: 'highlight'; toolbar: false; gutter: false"> open my $in, &#39;&lt;&#39;, $file or die &quot;Can&#39;t read old file: $!&quot; <pre class="brush: pl; class-name: 'highlight'; toolbar: false; gutter: false"> open my $in, &#39;&lt;&#39;, $file or die &quot;Can&#39;t read old file: $!&quot;
open my $out, &#39;&gt;&#39;, &quot;$file.new&quot; or die &quot;Can&#39;t write new file: $!&quot;; open my $out, &#39;&gt;&#39;, &quot;$file.new&quot; or die &quot;Can&#39;t write new file: $!&quot;;


my @lines = do { local $/; &lt;$in&gt; }; # slurp! my $content = do { local $/; &lt;$in&gt; }; # slurp!


# do your magic here # do your magic here


print $out @lines;</pre> print $out $content;</pre>


<p>Modules such as <a href="https://metacpan.org/module/File::Slurp">File::Slurp</a> and <a href="https://metacpan.org/module/Tie::File">Tie::File</a> can help with that too. If you can, however, avoid reading the entire file at once. Perl won&#39;t give that memory back to the operating system until the process finishes.</p> <p>Modules such as <a href="https://metacpan.org/module/File::Slurp">File::Slurp</a> and <a href="https://metacpan.org/module/Tie::File">Tie::File</a> can help with that too. If you can, however, avoid reading the entire file at once. Perl won&#39;t give that memory back to the operating system until the process finishes.</p>


Expand Down Expand Up @@ -1229,5 +1229,5 @@ <h1 id="AUTHOR-AND-COPYRIGHT">AUTHOR AND COPYRIGHT</h1>


<p>Irrespective of its distribution, all code examples here are in the public domain. You are permitted and encouraged to use this code and any derivatives thereof in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit to the FAQ would be courteous but is not required.</p> <p>Irrespective of its distribution, all code examples here are in the public domain. You are permitted and encouraged to use this code and any derivatives thereof in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit to the FAQ would be courteous but is not required.</p>


<p><em>Version: 5.0150040</em></p></div> <p><em>Version: 5.0150041</em></p></div>


4 changes: 2 additions & 2 deletions docs/learn/faq/perlfaq6.html
Expand Up @@ -8,7 +8,7 @@
=> "Perl Frequently Asked Questions, Perl FAQ", => "Perl Frequently Asked Questions, Perl FAQ",
keywords => "perl, perl faq, perlfaq" keywords => "perl, perl faq, perlfaq"
}); });
perlfaq_version = 5.0150040; perlfaq_version = 5.0150041;
-%] -%]
<div class="pod"> <div class="pod">


Expand Down Expand Up @@ -867,5 +867,5 @@ <h1 id="AUTHOR-AND-COPYRIGHT">AUTHOR AND COPYRIGHT</h1>


<p>Irrespective of its distribution, all code examples in this file are hereby placed into the public domain. You are permitted and encouraged to use this code in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit would be courteous but is not required.</p> <p>Irrespective of its distribution, all code examples in this file are hereby placed into the public domain. You are permitted and encouraged to use this code in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit would be courteous but is not required.</p>


<p><em>Version: 5.0150040</em></p></div> <p><em>Version: 5.0150041</em></p></div>


4 changes: 2 additions & 2 deletions docs/learn/faq/perlfaq7.html
Expand Up @@ -8,7 +8,7 @@
=> "Perl Frequently Asked Questions, Perl FAQ", => "Perl Frequently Asked Questions, Perl FAQ",
keywords => "perl, perl faq, perlfaq" keywords => "perl, perl faq, perlfaq"
}); });
perlfaq_version = 5.0150040; perlfaq_version = 5.0150041;
-%] -%]
<div class="pod"> <div class="pod">


Expand Down Expand Up @@ -815,5 +815,5 @@ <h1 id="AUTHOR-AND-COPYRIGHT">AUTHOR AND COPYRIGHT</h1>


<p>Irrespective of its distribution, all code examples in this file are hereby placed into the public domain. You are permitted and encouraged to use this code in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit would be courteous but is not required.</p> <p>Irrespective of its distribution, all code examples in this file are hereby placed into the public domain. You are permitted and encouraged to use this code in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit would be courteous but is not required.</p>


<p><em>Version: 5.0150040</em></p></div> <p><em>Version: 5.0150041</em></p></div>


4 changes: 2 additions & 2 deletions docs/learn/faq/perlfaq8.html
Expand Up @@ -8,7 +8,7 @@
=> "Perl Frequently Asked Questions, Perl FAQ", => "Perl Frequently Asked Questions, Perl FAQ",
keywords => "perl, perl faq, perlfaq" keywords => "perl, perl faq, perlfaq"
}); });
perlfaq_version = 5.0150040; perlfaq_version = 5.0150041;
-%] -%]
<div class="pod"> <div class="pod">


Expand Down Expand Up @@ -1130,5 +1130,5 @@ <h1 id="AUTHOR-AND-COPYRIGHT">AUTHOR AND COPYRIGHT</h1>


<p>Irrespective of its distribution, all code examples in this file are hereby placed into the public domain. You are permitted and encouraged to use this code in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit would be courteous but is not required.</p> <p>Irrespective of its distribution, all code examples in this file are hereby placed into the public domain. You are permitted and encouraged to use this code in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit would be courteous but is not required.</p>


<p><em>Version: 5.0150040</em></p></div> <p><em>Version: 5.0150041</em></p></div>


4 changes: 2 additions & 2 deletions docs/learn/faq/perlfaq9.html
Expand Up @@ -8,7 +8,7 @@
=> "Perl Frequently Asked Questions, Perl FAQ", => "Perl Frequently Asked Questions, Perl FAQ",
keywords => "perl, perl faq, perlfaq" keywords => "perl, perl faq, perlfaq"
}); });
perlfaq_version = 5.0150040; perlfaq_version = 5.0150041;
-%] -%]
<div class="pod"> <div class="pod">


Expand Down Expand Up @@ -364,5 +364,5 @@ <h1 id="AUTHOR-AND-COPYRIGHT">AUTHOR AND COPYRIGHT</h1>


<p>Irrespective of its distribution, all code examples in this file are hereby placed into the public domain. You are permitted and encouraged to use this code in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit would be courteous but is not required.</p> <p>Irrespective of its distribution, all code examples in this file are hereby placed into the public domain. You are permitted and encouraged to use this code in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit would be courteous but is not required.</p>


<p><em>Version: 5.0150040</em></p></div> <p><em>Version: 5.0150041</em></p></div>


0 comments on commit 9600126

Please sign in to comment.