perl -e "print reverse split ' ', q/hai how are you/" #PRINTS: youarehowhai