Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jdavidb (1361)

  (email not shown publicly)

J. David Blackstone has a Bachelor of Science in Computer Science and Engineering and nine years of experience at a wireless telecommunications company, where he learned Perl and never looked back. J. David has an advantage in that he works really hard, he has a passion for writing good software, and he knows many of the world's best Perl programmers.

Journal of jdavidb (1361)

Monday December 05, 2005
11:55 AM

A day has one or two digits

[ #27865 ]

Never extract a date using qr/\d\d/ to represent the day of the month. (Unless you have a spec to reference. Ha!) A date to many people is a \d+. In other words, some people (and even programs) represent the mday component of 2005-12-03 as simply " 3" or even "3" instead of the more proper "03".

Thankfully I at least followed my usual practice of using \s+ instead of " " between elements in the date string or I might have had even more confusion.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.