Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 6
    \$\begingroup\$ You can remove the third space. \$\endgroup\$ Commented Mar 9, 2011 at 1:37
  • 6
    \$\begingroup\$ In fact, print"".reverse<> is only 17 chars. And with Perl 5.10+ you can save two more chars by using say instead of print. \$\endgroup\$ Commented Apr 29, 2012 at 15:05
  • 4
    \$\begingroup\$ I know this is very old, but you could also do: print~~reverse<> for 16 chars \$\endgroup\$ Commented Dec 14, 2013 at 9:59
  • 5
    \$\begingroup\$ @DomHastings And with Perl 5.10+, say~~reverse<> would work? 14 chars. \$\endgroup\$ Commented Dec 31, 2013 at 16:12