Thread Ersatz für given (12 answers)
Opened by silver345 at 2014-01-31 14:40

pq
 2014-02-03 10:52
#173357 #173357
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
üblich war bei sowas auch immer:
Code (perl): (dl )
1
2
3
4
5
6
7
for ($foo->{bar}) {
    if ($_ eq "foo") {
    }
    elsif ($_ eq "bar") {
    }
    ...
}

das ist besonders bei regexes praktisch, da man da nichtmal das $_ dazuschreiben muss.
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 Ersatz für given