Thread welchen Programmierstil findet ihr lesbarer?
(13 answers)
Opened by lichtkind at 2010-08-10 20:43 Code (perl): (dl
)
1 2 3 4 5 6 7 my $eol = { linux => "\n", unix => "\n", dos => "\r\n", apple => "\r", mac => "\r", }->{ $ARGV[0] } or usage(); 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: Wie frage ich & perlintro brian's Leitfaden für jedes Perl-Problem |