in reply to Re^3: Is there an easy way to get the start date of the current week?
in thread Is there an easy way to get the start date of the current week?
Not to be arguing, but what /would/ it be called then, when using the script in a multi-langual environment, or when you do not know what the locale will be at execution time?
I really like the simplicity of the approach. I always want to answer the stupid question "How do I print yesterday in perl?" with 'print "yesterday"', which is a perfect answer, but obviously not what the question was about. I've hit this locale problem way too often to not care, and if you'd use a regex match, the easy way out is to use { local $ENV{LC_TIME} = "en_US"; ... }.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Is there an easy way to get the start date of the current week?
by BrowserUk (Patriarch) on Aug 22, 2010 at 07:35 UTC | |
by Tux (Canon) on Aug 22, 2010 at 07:49 UTC | |
by zwon (Abbot) on Aug 22, 2010 at 15:50 UTC | |
by BrowserUk (Patriarch) on Aug 22, 2010 at 16:59 UTC |