Thread if else contra ?: (18 answers)
Opened by Crian at 2004-08-06 14:27

pq
 2004-08-06 15:23
#85551 #85551
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
hmm, wo hast du denn das gelesen?
B::Deparse zeigt das jedenfalls nicht an:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$ perl -MO=Deparse -wle'
$x = 1;
if ($x) {
print 1
}
else {
print 0
}'
BEGIN { $^W = 1; }
BEGIN { $/ = "\n"; $\ = "\n"; }
$x = 1;
if ($x) {
print 1;
}
else {
print 0;
}
-e syntax OK
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 if else contra ?: