Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime-Format-Strptime CPAN distribution.

Report information
The Basics
Id: 85772
Status: resolved
Priority: 0/
Queue: DateTime-Format-Strptime

People
Owner: Nobody in particular
Requestors: kwilliams [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.
Subject: 0001-Make-it-clear-that-the-brackets-themselves-aren-t-pa.patch
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 -- 1.8.0.1
Applied in git. Thanks.