Charlie Farinella wrote:
> I have an error popping up in an application that runs monthly reports
> and everymonth seems to leave off the last day's entries.
>
> The subroutine that determines the last day of the month is here:
>
> sub GetLastDayOfMonth {
> my( $sec, $min, $hours, $mday, $mon,
From: Charlie Farinella
<[EMAIL PROTECTED]>
> I have an error popping up in an application that runs monthly reports
> and everymonth seems to leave off the last day's entries.
>
> The subroutine that determines the last day of the month is here:
>
> sub GetLastDayOfMonth {
>
on Mon, 30 Sep 2002 21:38:34 GMT, Charlie Farinella wrote:
> I don't know if this is helpful. Let me know.
>
>> a) how this function is called, and
>
> if( $hashref->{'period'} eq '1' ) {
> $starttime = GetFirstDayOfMonth( $curtime );
> $endtime = GetLastDayOfMonth( $c
On Mon, 2002-09-30 at 17:18, Felix Geerinckx wrote:
> on Mon, 30 Sep 2002 21:12:56 GMT, Charlie Farinella wrote:
>
> > I have an error popping up in an application that runs monthly reports
> > and everymonth seems to leave off the last day's entries.
> >
> > The subroutine that determines the l
er... my bad.. typo
use Date::Calc qw(Days_in_Month);
> -Original Message-
> From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 30, 2002 5:17 PM
> To: 'Charlie Farinella'; Perl Beginners
> Subject: RE: Last day of Month
>
>
>
on Mon, 30 Sep 2002 21:12:56 GMT, Charlie Farinella wrote:
> I have an error popping up in an application that runs monthly reports
> and everymonth seems to leave off the last day's entries.
>
> The subroutine that determines the last day of the month is here:
>
> sub GetLastDayOfMonth {
>
The error you have is you didn't use the module that already does this for
you.
use Data::Calc qw(Days_in_Month);
> -Original Message-
> From: Charlie Farinella [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 30, 2002 5:13 PM
> To: Perl Beginners
> Subject: Last day of Month
>
>