in reply to Re^7: Gettting the last Friday of every month using Time::Piece
in thread Gettting the last Friday of every month using Time::Piece

What's the difference between Time::Piece::_wday and Time::Piece::day_of_week?

Replies are listed 'Best First'.
Re^9: Gettting the last Friday of every month using Time::Piece
by runrig (Abbot) on Jun 30, 2014 at 23:39 UTC
    What's the difference between Time::Piece::_wday and Time::Piece::day_of_week?
    What's the difference between:
    $t->_wday # 0 = Sunday
    And:
    $t->day_of_week # 0 = Sunday
    Answer: One is spelt "_wday", and the other is spelt "day_of_week". But I thought I already answered that question above (if you read carefully). But you can also tell by the source code (as a last resort):
    *day_of_week = \&_wday;
      But I thought I already answered that question above (if you read carefully).

      You did, and I overlooked it. Mea culpa. I'm sorry.

      But you can also tell by the source code (as a last resort):  *day_of_week = \&_wday;

      I had actually done just that before I posted my question. There's always the source code, of course.