Index: BOOK/introduction/common/changelog.xml
===================================================================
--- BOOK/introduction/common/changelog.xml	(revision afb1ffc7f9f0b58dcca2557c2bb0e34976d98e66)
+++ BOOK/introduction/common/changelog.xml	(revision 7bfa76bbae50da2e907a88812c43ad40eedd757a)
@@ -37,4 +37,13 @@
 -->
     <listitem>
+      <para>14 August 2013</para>
+      <itemizedlist>
+        <listitem>
+          <para>[William Harrington] - Update Perl to 5.18.1.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>12 August 2013</para>
       <itemizedlist>
Index: BOOK/packages.ent
===================================================================
--- BOOK/packages.ent	(revision afb1ffc7f9f0b58dcca2557c2bb0e34976d98e66)
+++ BOOK/packages.ent	(revision 7bfa76bbae50da2e907a88812c43ad40eedd757a)
@@ -337,8 +337,8 @@
 <!ENTITY patch-home "http://savannah.gnu.org/projects/patch">
 
-<!ENTITY perl-version "5.18.0">
-<!ENTITY perl-size "13,708 KB">
+<!ENTITY perl-version "5.18.1">
+<!ENTITY perl-size "14,060 KB">
 <!ENTITY perl-url "http://www.cpan.org/src/5.0/perl-&perl-version;.tar.bz2">
-<!ENTITY perl-md5 "a832e928adfd36d162d2a5d3b631265c">
+<!ENTITY perl-md5 "4ec1a3f3824674552e749ae420c5e68c">
 <!ENTITY perl-home "http://www.perl.org">
 
Index: BOOK/patches.ent
===================================================================
--- BOOK/patches.ent	(revision afb1ffc7f9f0b58dcca2557c2bb0e34976d98e66)
+++ BOOK/patches.ent	(revision 7bfa76bbae50da2e907a88812c43ad40eedd757a)
@@ -63,6 +63,6 @@
 
 <!ENTITY perl-libc-patch "perl-&perl-version;-libc-1.patch">
-<!ENTITY perl-libc-patch-md5 "65551c960143c93312916b9bf8f1c0ed">
-<!ENTITY perl-libc-patch-size "1.540 KB">
+<!ENTITY perl-libc-patch-md5 "63eda1cc319206788ea93c58f395417c">
+<!ENTITY perl-libc-patch-size "1.603 KB">
 
 <!ENTITY procps-ps_cgroup-patch "procps-&procps-version;-ps_cgroup-1.patch">
@@ -100,6 +100,6 @@
 
 <!ENTITY perl-multilib-patch "perl-&perl-version;-Configure_multilib-1.patch">
-<!ENTITY perl-multilib-patch-md5 "24f1028d4ea9c1b26c9e9e843d373431">
-<!ENTITY perl-multilib-patch-size "1.885 KB">
+<!ENTITY perl-multilib-patch-md5 "d339c17439ac986d9593c86db93d545c">
+<!ENTITY perl-multilib-patch-size "1.946 KB">
 
 <!-- Start of Pure64 patches -->
Index: tches/perl-5.18.0-Configure_multilib-1.patch
===================================================================
--- patches/perl-5.18.0-Configure_multilib-1.patch	(revision afb1ffc7f9f0b58dcca2557c2bb0e34976d98e66)
+++ 	(revision )
@@ -1,46 +1,0 @@
-Submitted By: Ryan Oliver <ryan dot oliver at pha dot com dot au>
-Date: 2010-08-01
-Initial Package Version: 5.8.8
-Origin: Ryan Oliver
-Upstream Status: Unknown
-Description: This patch allows perl to be installed in /usr/lib32
-             or /usr/lib64 instead of /usr/lib.
-
-Rediffed: Against 5.10.0 by Joe Ciccone on 2008-08-30
-          Against 5.10.1 By Jim Gifford on 2009-08-25
-          Against 5.12.1 By Joe Ciccone on 2010-08-01
-          Against 5.16.1 By William Harrington on 2012-08-26
-Rename for 5.16.2 by William Harrington on 2012-11-01
-
-Rediffed: Against 5.18.0 by William Harrington on 2013-05-28
-
-diff -Naur perl-5.18.0.orig/Configure perl-5.18.0/Configure
---- perl-5.18.0.orig/Configure	2013-05-10 14:13:56.000000000 +0000
-+++ perl-5.18.0/Configure	2013-05-28 11:50:25.767172726 +0000
-@@ -6219,6 +6219,8 @@
- : The default "style" setting is made in installstyle.U
- case "$installstyle" in
- *lib/perl5*) set dflt privlib lib/$package/$version ;;
-+*lib32/perl5*) set dflt privlib lib32/$package/$version ;;
-+*lib64/perl5*) set dflt privlib lib64/$package/$version ;;
- *)	 set dflt privlib lib/$version ;;
- esac
- eval $prefixit
-@@ -6467,6 +6469,8 @@
- case "$sitelib" in
- '') case "$installstyle" in
- 	*lib/perl5*) dflt=$siteprefix/lib/$package/site_$prog/$version ;;
-+	*lib32/perl5*) dflt=$siteprefix/lib32/$package/site_$prog/$version ;;
-+	*lib64/perl5*) dflt=$siteprefix/lib64/$package/site_$prog/$version ;;
- 	*)	 dflt=$siteprefix/lib/site_$prog/$version ;;
- 	esac
- 	;;
-@@ -6986,6 +6990,8 @@
- 		prog=`echo $package | $sed 's/-*[0-9.]*$//'`
- 		case "$installstyle" in
- 		*lib/perl5*) dflt=$vendorprefix/lib/$package/vendor_$prog/$version ;;
-+		*lib32/perl5*) dflt=$vendorprefix/lib32/$package/vendor_$prog/$version ;;
-+		*lib64/perl5*) dflt=$vendorprefix/lib64/$package/vendor_$prog/$version ;;
- 		*)	     dflt=$vendorprefix/lib/vendor_$prog/$version ;;
- 		esac
- 		;;
Index: tches/perl-5.18.0-libc-1.patch
===================================================================
--- patches/perl-5.18.0-libc-1.patch	(revision afb1ffc7f9f0b58dcca2557c2bb0e34976d98e66)
+++ 	(revision )
@@ -1,43 +1,0 @@
-Submitted By: Jonathan Norman <Jonathan at bluesquarelinux.co.uk>
-Date: 2011-05-17
-Initial Package Version: 5.8.8
-Origin: Ryan Oliver
-Upstream Status: Unknown
-Description: This patch adapts some hard-wired paths to the C library.
-             It uses the $prefix variable to locate the correct libc.
-
-Rediffed: Against 5.10.0 by Joe Ciccone on 2008-08-30
-          Against 5.10.1 By Jim Gifford on 2009-08-25
-          Against 5.12.1 By Joe Ciccone on 2010-08-01
-          Against 5.14.0 By Jonathan Norman on 2011-05-17
-          Against 5.16.1 by William Harrington on 2012-08-26
-Rename for 5.16.2 by William Harrington on 2012-11-01
-
-Rediffed: Against 5.18.0 by William Harrington on 2013-05-27
-
-diff -Naur perl-5.18.0.orig/hints/linux.sh perl-5.18.0/hints/linux.sh
---- perl-5.18.0.orig/hints/linux.sh	2013-05-01 02:52:55.000000000 +0000
-+++ perl-5.18.0/hints/linux.sh	2013-05-29 13:55:42.871771313 +0000
-@@ -66,9 +66,9 @@
- # We don't use __GLIBC__ and  __GLIBC_MINOR__ because they
- # are insufficiently precise to distinguish things like
- # libc-2.0.6 and libc-2.0.7.
--if test -L /lib/libc.so.6; then
--    libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'`
--    libc=/lib/$libc
-+if test -L ${prefix}/lib/libc.so.6; then
-+    libc=`ls -l ${prefix}/lib/libc.so.6 | awk '{print $NF}'`
-+    libc=${prefix}/lib/$libc
- fi
- 
- # Configure may fail to find lstat() since it's a static/inline
-@@ -456,3 +456,9 @@
-     libswanted="$libswanted pthread"
-     ;;
- esac
-+
-+locincpth=""
-+loclibpth=""
-+glibpth="${prefix}/lib"
-+usrinc="${prefix}/include"
-+
Index: patches/perl-5.18.1-Configure_multilib-1.patch
===================================================================
--- patches/perl-5.18.1-Configure_multilib-1.patch	(revision 7bfa76bbae50da2e907a88812c43ad40eedd757a)
+++ patches/perl-5.18.1-Configure_multilib-1.patch	(revision 7bfa76bbae50da2e907a88812c43ad40eedd757a)
@@ -0,0 +1,47 @@
+Submitted By: Ryan Oliver <ryan dot oliver at pha dot com dot au>
+Date: 2013-08-13
+Initial Package Version: 5.8.8
+Origin: Ryan Oliver
+Upstream Status: Unknown
+Description: This patch allows perl to be installed in /usr/lib32
+             or /usr/lib64 instead of /usr/lib.
+
+Rediffed: Against 5.10.0 by Joe Ciccone on 2008-08-30
+          Against 5.10.1 By Jim Gifford on 2009-08-25
+          Against 5.12.1 By Joe Ciccone on 2010-08-01
+          Against 5.16.1 By William Harrington on 2012-08-26
+Rename for 5.16.2 by William Harrington on 2012-11-01
+
+Rediffed: Against 5.18.0 by William Harrington on 2013-05-28
+Rediffed: Against 5.18.1 by William Harrington on 2013-08-13
+
+diff -Naur perl-5.18.1.orig/Configure perl-5.18.1/Configure
+--- perl-5.18.1.orig/Configure	2013-08-12 02:44:47.000000000 +0000
++++ perl-5.18.1/Configure	2013-08-13 16:47:20.188650223 +0000
+@@ -6219,6 +6219,8 @@
+ : The default "style" setting is made in installstyle.U
+ case "$installstyle" in
+ *lib/perl5*) set dflt privlib lib/$package/$version ;;
++*lib32/perl5*) set dflt privlib lib32/$package/$version ;;
++*lib64/perl5*) set dflt privlib lib64/$package/$version ;;
+ *)	 set dflt privlib lib/$version ;;
+ esac
+ eval $prefixit
+@@ -6467,6 +6469,8 @@
+ case "$sitelib" in
+ '') case "$installstyle" in
+ 	*lib/perl5*) dflt=$siteprefix/lib/$package/site_$prog/$version ;;
++	*lib32/perl5*) dflt=$siteprefix/lib32/$package/site_$prog/$version ;;
++	*lib64/perl5*) dflt=$siteprefix/lib64/$package/site_$prog/$version ;;
+ 	*)	 dflt=$siteprefix/lib/site_$prog/$version ;;
+ 	esac
+ 	;;
+@@ -6986,6 +6990,8 @@
+ 		prog=`echo $package | $sed 's/-*[0-9.]*$//'`
+ 		case "$installstyle" in
+ 		*lib/perl5*) dflt=$vendorprefix/lib/$package/vendor_$prog/$version ;;
++		*lib32/perl5*) dflt=$vendorprefix/lib32/$package/vendor_$prog/$version ;;
++		*lib64/perl5*) dflt=$vendorprefix/lib64/$package/vendor_$prog/$version ;;
+ 		*)	     dflt=$vendorprefix/lib/vendor_$prog/$version ;;
+ 		esac
+ 		;;
Index: patches/perl-5.18.1-libc-1.patch
===================================================================
--- patches/perl-5.18.1-libc-1.patch	(revision 7bfa76bbae50da2e907a88812c43ad40eedd757a)
+++ patches/perl-5.18.1-libc-1.patch	(revision 7bfa76bbae50da2e907a88812c43ad40eedd757a)
@@ -0,0 +1,44 @@
+Submitted By: Jonathan Norman <Jonathan at bluesquarelinux.co.uk>
+Date: 2013-08-13
+Initial Package Version: 5.8.8
+Origin: Ryan Oliver
+Upstream Status: Unknown
+Description: This patch adapts some hard-wired paths to the C library.
+             It uses the $prefix variable to locate the correct libc.
+
+Rediffed: Against 5.10.0 by Joe Ciccone on 2008-08-30
+          Against 5.10.1 By Jim Gifford on 2009-08-25
+          Against 5.12.1 By Joe Ciccone on 2010-08-01
+          Against 5.14.0 By Jonathan Norman on 2011-05-17
+          Against 5.16.1 by William Harrington on 2012-08-26
+Rename for 5.16.2 by William Harrington on 2012-11-01
+
+Rediffed: Against 5.18.0 by William Harrington on 2013-05-27
+Rediffed: Against 5.18.1 by William Harrington on 2013-08-13
+
+diff -Naur perl-5.18.1.orig/hints/linux.sh perl-5.18.1/hints/linux.sh
+--- perl-5.18.1.orig/hints/linux.sh	2013-08-12 02:44:48.000000000 +0000
++++ perl-5.18.1/hints/linux.sh	2013-08-13 16:46:38.594653439 +0000
+@@ -66,9 +66,9 @@
+ # We don't use __GLIBC__ and  __GLIBC_MINOR__ because they
+ # are insufficiently precise to distinguish things like
+ # libc-2.0.6 and libc-2.0.7.
+-if test -L /lib/libc.so.6; then
+-    libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'`
+-    libc=/lib/$libc
++if test -L ${prefix}/lib/libc.so.6; then
++    libc=`ls -l ${prefix}/lib/libc.so.6 | awk '{print $NF}'`
++    libc=${prefix}/lib/$libc
+ fi
+ 
+ # Configure may fail to find lstat() since it's a static/inline
+@@ -456,3 +456,9 @@
+     libswanted="$libswanted pthread"
+     ;;
+ esac
++
++locincpth=""
++loclibpth=""
++glibpth="${prefix}/lib"
++usrinc="${prefix}/include"
++
