View Single Post
  #2 (permalink)  
Old December 30th, 2006, 09:52 PM
ciderpunx ciderpunx is offline
Friend of Wrox
Points: 1,515, Level: 15
Points: 1,515, Level: 15 Points: 1,515, Level: 15 Points: 1,515, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Oxford, , United Kingdom.
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hallo

scalar reverse reverses the order of the chars in your string i.e. if your string was 'string' it'd end up being 'gnirts'. In a list context it'd return the items in the list in reverse order. And with a hash it inverts the hash. cf:

http://perldoc.perl.org/functions/reverse.html

HTH

--
Don't Stand on your head - you'll get footprints in your hair
                                           http://charlieharvey.org.uk
                                              http://charlieharvey.com
Reply With Quote