Math operators
- Standard math operators apply:
* for multiplication, / for division, % for modulo, ** for exponentiation, etc
String operators
- x gives multiple
instances of the left arg.
"x" x
10 gives "xxxxxxxxxx"
- . concatenates
strings
Operations
sample
- nanaheyhey.pl:
#!perl -w
print ((("Na " x 4) . "\n") x 2);
print (("Hey " x 3) . "\n");
print "Goodbye\n"; Na Na Na Na
Na Na Na Na
Hey Hey Hey
Goodbye
|
|
|