in reply to What is a stringwise operator?
No need to bust out DateTime, or even sort+split!perl> '2004-09-01 17:31:45' lt '2009-05-01 19:41:31' -> 1; perl> '2010-09-01 17:31:45' gt '2009-05-01 19:41:31' -> 1; perl> '2010-09-01' lt '2009-05-01 19:41:31' -> ''; perl> '2010-09-01' gt '2009-05-01 19:41:31' -> 1; perl> '2010-09-01' lt '2009-05-01 19:41:31' -> '';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What is a stringwise operator?
by jhourcle (Prior) on Feb 25, 2008 at 16:27 UTC | |
by halley (Prior) on Feb 25, 2008 at 17:19 UTC | |
by jhourcle (Prior) on Feb 25, 2008 at 18:34 UTC |