Home
Perl
Array
CGI
Class
Data Type
Database
File
GUI
Hash
Language Basics
Network
Regular Expression
Report
Statement
String
Subroutine
System Functions
Win32
XML
Reverse a string : Reverse « String « Perl
Perl
String
Reverse
Reverse a string
$string =
"Hello!"
; $reversed = reverse($string); print
"$reversed\n"
;
Related examples in the same category
1.
Reverses the word order of the input file.