@arr = split //, $string;
Splits a string into individual characters.
@lines = split /^/m, $file;
Splits a file contents into separate lines;
| Operator | Meaning |
| Concatenation | $line = "first" . "hast"; |
| Join | $temp = join($", @ARGV); |
print $temp; |
|
| Repetition | $line = "123"; |
$i = 3; |
|
print $line x $i; |
|
| 123123123 | |
| Split | @lines = split /^/m, $buffer; |