June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -1,3 +1,21 @@
|
|||
my $str = 'bar';
|
||||
substr $str, 0, 0, 'Foo';
|
||||
print $str;
|
||||
use strict;
|
||||
use warnings;
|
||||
use feature ':all';
|
||||
|
||||
# explicit concatentation
|
||||
$_ = 'bar';
|
||||
$_ = 'Foo' . $_;
|
||||
say;
|
||||
|
||||
|
||||
# lvalue substr
|
||||
$_ = 'bar';
|
||||
substr $_, 0, 0, 'Foo';
|
||||
say;
|
||||
|
||||
|
||||
# interpolation as concatenation
|
||||
# (NOT safe if concatenate sigils)
|
||||
$_ = 'bar';
|
||||
$_ = "Foo$_";
|
||||
say;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue