⟩ How to sort dates in Perl?
Example
-------
use Data::Dumper;
my @dates = ( "02/11/2009" , "20/12/2001" , "21/11/2010" ) ;
@dates = sort { join( '', (split '/', $a)[2,1,0] ) cmp
join( '', (split '/', $b)[2,1,0]) } @dates;
print Dumper @dates;
Example
-------
use Data::Dumper;
my @dates = ( "02/11/2009" , "20/12/2001" , "21/11/2010" ) ;
@dates = sort { join( '', (split '/', $a)[2,1,0] ) cmp
join( '', (split '/', $b)[2,1,0]) } @dates;
print Dumper @dates;
Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc?
In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?
When is a scope terminator mandatory?
In an EVALUTE statement is the order of the WHEN clauses significant?
What is COMP SYNC?
What is SET TO TRUE all about, anyway?
What is the default value(s) for an INITIALIZE and what keyword allows for an override of the default?
How do you define a sort file in JCL that runs the COBOL program?
What is the difference between a binary search and a sequential search? What are the pertinent COBOL commands?
My program has an array defined to have 10 items. Due to a bug, I find that even if the program access the 11th item in this array, the program does not ABEND. What is wrong with it?