
| Contents |
|||||||||||||||
| [an error occurred while processing this directive] |
2.4.4 String OperatorsThe final set of operators that we will consider are those that operate specifically on strings. Remember, though, that we can use numbers with them, as Perl will do the conversions to strings when needed.
The string operators that you will see and use the most are
use strict; my $greet = "Hi! "; my $longGreet = $greet x 3; # $longGreet is "Hi! Hi! Hi! " my $hi = $longGreet . "Paul."; # $hi is "Hi! Hi! Hi! Paul."
|