![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: Why the print is not workingby friedo (Prior) |
on Nov 10, 2005 at 16:27 UTC ( #507439=note: print w/replies, xml ) | Need Help?? |
print takes a list, and so puts reverse in list context. In list context, reverse returns the list with the items reversed. In the case of a one item list, the result is exactly the same. To reverse the string "dog", you can use:
In Section
Seekers of Perl Wisdom
|
|