in reply to Strange concatenation

The strings "2006-01-01 12:00:05" and "2007-01-02 12:00:00" can be sorted "as is" without resorting to using the ST:
my $recent = ( sort @ARGV )[ 0 ];

Replies are listed 'Best First'.
Re^2: Strange concatenation
by deibyz (Hermit) on Nov 23, 2006 at 14:24 UTC
    Yes, in this case is true. Anyway is the significative part of a biggest piece of code that sorts and compares different date and time formats in a trying to be fast way, and so the need to split and rejoin.

      How could splitting and rejoining be faster than a plain string sort, if they are not needed? (If they were, it would be a different story, of course.)

        But the Schwartzian Transform always makes sorting faster! Haven't you read anything??