Hello, I would like to reverse "All the best" to "best the All". I know if I split it on space on put in a array then I can print the reverse array. But here I would like to get it done without using array. is there a way?
I am doing kind of this but not sure what is missing to get the output as "best the All"
perl -le '$string = "All the best"; print scalar reverse $string'
tseb eht llA