Thread Anfänger IF-Problem
(8 answers)
Opened by keeperin at 2007-12-04 17:27 Code (perl): (dl
)
1 2 3 4 5 6 7 chomp(my $runlevel = qx{/sbin/runlevel}); if ($runlevel eq '4 3') { print "RUNLEVEL 3\n"; } elsif ($runlevel eq '3 4') { ... } edit: schliessende klammer bei chomp(); danke renee 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 |