in reply to Re^5: Using split, splice, and join to remove time from scalar context return of localtime()
in thread Using split, splice, and join to remove time from scalar context return of localtime()
For example, sort (and eq, ne et al.) will often not do what is expected by my algorithms (or yours), if the locale on the machines our code is run on is incompatible.
That's not true.
eq and ne are never affected by the locale.
As for lt, le, cmp (which includes the default sort), ge and gt, you need to use use locale; to make them observe the locale. That's why you normally don't have to worry about the user's locale.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Using split, splice, and join to remove time from scalar context return of localtime()
by BrowserUk (Patriarch) on Dec 18, 2009 at 08:45 UTC |