I'm trying to figure out what exactly a script I wrote (see the attachment) is
doing by stepping through it in the debugger.  I have an array of dates in
%Y-%m-%d format for each of the last 7 days.  So, for instance, the range of
dates for today (June 17, 2007) is from the 10th to the 16th.  I then take these
dates and use them to find work tickets in our ticketing system which were last
updated on the day currently being checked.

So, the first date would be 2007-06-16 (having pushed, rather than shifted, the
array).  I then grab the date of a ticket transaction, dropping the time from it
so it is only the date (my $lstupdt = $ticket->LastUpdated) =~ s/\s.*$//;
The ticket system uses datetime format so I have to remove the space following
the date and everything after it.  LastUpdated is a built in method for the
ticket system which does pretty much what its name implies, gets the date of the
last transaction on the ticket.

In the debugger I've set the 'w' command to watch the variable containing the
day being looked for ($day).  I would have thought $day stays the same throught
an iteration of the while loop but the debugger keeps stopping to tell me it
switched from '2007-06-15' (for instance) to ''.  I then continue and it tells
me it switched back from '' to '2007-06-15'.  Is it supposed to do that?
Shouldn't the $day variable remain constant?

I know this is convoluted and not having knowledge of the ticket system may make
this difficult to help with, but anything you can offer will be appreciated

Mathew
-- 
Keep up with me and what I'm up to: http://theillien.blogspot.com

Attachment: weekly_timesheet.pl
Description: Perl program

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/

Reply via email to