in reply to is today a friday

Since this is probably homework, I assume Date::Calc won't be helpful to you.

I suggest you write out in English how to do it, and then translate that English to Perl.

Replies are listed 'Best First'.
Re^2: is today a friday
by baysbenj (Initiate) on Mar 10, 2006 at 19:08 UTC
    Nah, not homework. I'm doing an internship where I'm working to create a time management system. The program is only to accept dates that are a friday. If the day is not a friday, I need to automatically adjust to the friday of that week. I could brute force a solution, but before I did I was just wondering if there was a way to have localtime or gmtime do the work for me. Date::Calc is also not an option, because they do not have the module installed and I'm unable to install it (I ran into a similar problem when i wanted them to install a module for threading).