Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 4544
Status: resolved
Priority: 0/
Queue: DateTime

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

Bug Information
Severity: Wishlist
Broken in: 0.19
Fixed in: 0.19



Subject: suggestion for improvement to 'compare' docs
Hello, here's a suggestion to improve the docs for 'compare' a little bit. In the opening code example there, "$dt1" and "$dt2" are used for the example DateTime objects. For much of the rest of the docs in that section, $a and $b and used instead. I would find it a bit clearer of one or the other sets of variables were used consistently. Thanks for your work on DateTime-- I expect to find it to be very useful for me.
Date: Tue, 2 Dec 2003 23:23:48 -0600 (CST)
From: Dave Rolsky <autarch [...] urth.org>
To: Guest via RT <bug-DateTime [...] rt.cpan.org>
Subject: Re: [cpan #4544] suggestion for improvement to 'compare' docs
RT-Send-Cc:
On Tue, 2 Dec 2003, Guest via RT wrote: Show quoted text
> Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=4544 > > > Hello, here's a suggestion to improve the docs for 'compare' a little > bit. > > In the opening code example there, "$dt1" and "$dt2" are used for the > example DateTime objects. For much of the rest of the docs in that > section, $a and $b and used instead. I would find it a bit clearer of > one or the other sets of variables were used consistently. > > Thanks for your work on DateTime-- I expect to find it to be very useful > for me.
$a and $b are only used in the context of providing your own sorting code for the sort() function. See "perldoc -f sort". Using $a and $b outside of this context is a bad idea, actually. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/