I know there have been recent rotate posts, but wondering about a simple 
example. Possibly I missed this on the archive.

Given a list of numbers, say, 1..12 for the months, and knowing the 
month (i.e. 6), assign a list that is ((6..12),(1..5)).

Assuming July, I have:

   $m = 6;
   @ordered = ((1..12)[$m..11],(1..$m));

What if the original list was 0..11?

Reply via email to