Thread scalar comma operator (25 answers)
Opened by KurtZ at 2008-12-31 02:05

pq
 2008-12-31 02:47
#104302 #104302
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
das beispiel ist ungünstig.
Code: (dl )
1
2
3
4
5
6
my $foo = (tuwas(), tu_nochwas(), 23); # $foo = 23
sub boo {
return 2,3,4;
}
my $far = boo(); # 4
my @bar = boo(); # 2,3,4
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread scalar comma operator