4 Einträge, 1 Seite |
my $c = "hello " . ($var - 1);
my $c = sprintf("hello %d", $var-1);
1
2
3
4
5
6
phaylon@gaia:~ # perl -Mwarnings -Mstrict
my $a = 12;
my $b = "test ${\($a - 9)} foobar\n";
print $b;^D
test 3 foobar
phaylon@gaia:~ #
my $b = "test @{[ $a - 9 ]} foobar\n";
4 Einträge, 1 Seite |