Subject: | Minor patch - change qq|...| to here-doc |
cperl-mode, at least the version I have installed, doesn't seem to like qq|...| at all, because it never finds the ending '|' or something. This patch changes it to a here-doc (and also fixes a hidden couple of tabs).
If you don't like the patch, no sweat, just thought I'd share it in case.
Subject: | 0002-The-multi-line-qq-.-seems-to-confuse-cperl-mode-badl.patch |
From a2d82169a743472476e7ca314d1495510458658b Mon Sep 17 00:00:00 2001
From: Ken Williams <Ken.Williams@WindLogics.com>
Date: Fri, 31 May 2013 18:06:32 +0000
Subject: [PATCH 2/2] The multi-line qq|...| seems to confuse cperl-mode badly
- change to <<EOF here-doc.
---
lib/DateTime/Format/Strptime.pm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/DateTime/Format/Strptime.pm b/lib/DateTime/Format/Strptime.pm
index f389ec6..3247a6e 100644
--- a/lib/DateTime/Format/Strptime.pm
+++ b/lib/DateTime/Format/Strptime.pm
@@ -272,10 +272,10 @@ sub parse_datetime {
die $@ if $@;
if ( $self->{diagnostic} ) {
- print qq|
+ print <<EOF;
Entered = $time_string
-Parser = $parser
+Parser = $parser
dow_name = $dow_name
month_name = $month_name
@@ -303,7 +303,7 @@ epoch = $epoch
iso_week_year = $iso_week_year
iso_week_year_100 = $iso_week_year_100
- |;
+EOF
}
--
1.8.0.1