in reply to Five Ways to Reverse a String of Words (C#, Perl 5, Perl 6, Ruby, Haskell)
Just so users of more traditional languages don't get left out:
IMPLICIT NONE ! Fortran's equivalent to use strict;use warnings
CHARACTER(len=*),PARAMETER,DIMENSION(4) :: in = (/' one', 'two', 'thr
+ee ', 'four'/)
DO n = SIZE(n),2, -1;WRITE(*,'(a,",",1x)',advance = 'no') TRIM(ADJUSTL
OOPS! forgot to split it. I've written a split routine in Fortran (without, alas, regex support). It's actually quite easy, especially since, in Fortran, storage for everything in an argument list is responsibility of the caller. My next feat will be to include regex support....
At that time  the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.
—Igor Sikorsky, reported in AOPA Pilot
magazine February 2003.