Because reverse in list context reverses the order of the items in the list; in scalar context it reverses the characters in a string. Just like the documentation says it does.
Update: And your confusion may be from the fact that print is providing a list context to reverse which is triggering its reverse-a-LIST behavior even though it's only been given a single element list.
In reply to Re: Reverse the String
by Fletch
in thread Reverse the String
by ashokpj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |