Thread push (10 answers)
Opened by Gast at 2008-12-03 13:59

pq
 2008-12-03 14:29
#116808 #116808
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
Gast+2008-12-03 12:59:35--
Woran liegt es, dass es nicht möglich war, soetwas

[s]If LIST is omitted, pushes $_ onto the end of ARRAY.[/s]

in die push-doc zu schreiben (unausgestrichener)?

weil es falsche doku wäre?
Code: (dl )
1
2
3
4
5
6
7
perl -wle'
@a = (23);
$_ = 42;
push @a;
print for @a'
Useless use of push with no values at -e line 4.
23
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 push