I am a beginner to perl. Well i have done a little bit of c.I am trying to write a program thatwill print out all the rotations of a string typed into it.For example the rotation of the word SPACE is as follows:-
SPACE PACES ACESP CESPA ESPAC.
Now in c i could just define a single dimension array and do it . i could do it in perl like this perhaps
@array= ( "s", "p","a","c","e","s")
but since in perl there is TIMTOWTDI i would really appreciate other methods.
Thanks
ankur
india