in reply to Date::Manip and Date::Calc

Have you tried using Days_in_Month from Date::Calc? It will tell you how many days are in the current month, so if there are 30 days in the month the last day is the 30th.

Replies are listed 'Best First'.
Re: Re: Date::Manip and Date::Calc
by Albannach (Monsignor) on Oct 22, 2001 at 19:28 UTC
    Well not quite the current month, as you have to provide a year and month:
    print "The last day of the month is ", Date_to_Text_Long((Today())[0..1],Days_in_Month((Today())[0..1]));

    --
    I'd like to be able to assign to an luser