|Subject:||Doc patch - clarify %[number]N docs|
I spent a long time trying to figure out why I was getting a cryptic eval() error message, before I finally realized the brackets in %[number]N weren't literal, just for docs. The attached might help clarify.
From 67b76f0be4fcf7a8c757b0b320a3342d710e41eb Mon Sep 17 00:00:00 2001 From: Ken Williams <Ken.Williams@WindLogics.com> Date: Fri, 31 May 2013 18:05:36 +0000 Subject: [PATCH 1/2] Make it clear that the brackets themselves aren't part of the %[number]N format. --- lib/DateTime/Format/Strptime.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/DateTime/Format/Strptime.pm b/lib/DateTime/Format/Strptime.pm index 0ec21be..f389ec6 100644 --- a/lib/DateTime/Format/Strptime.pm +++ b/lib/DateTime/Format/Strptime.pm @@ -1315,7 +1315,8 @@ Arbitrary whitespace. =item * %N -Nanoseconds. For other sub-second values use C<%[number]N>. +Nanoseconds. For other sub-second values use C<%[number]N>, where +C<[number]> is the number of digits (without the brackets). =item * %p -- 22.214.171.124