Tags: perl5 Ähnliche Threads
1 2 3 4 5 6 7 8 9
#!/usr/bin/perl use strict; use warnings; my $test2; my $test = 'foo' . (1==1 ? 'bar' && $test2 = 2 : '') ; print "$test\n$test2\n";
123
d:>perl test.plfoo22
1 2
my $test = 'foo' . (1==1 ? 'bar' && $test2 = 2 : '');
my $test = 'foo' . (1==1 ? ('bar' && $test2 = 2) : '');