Thread Weitergabe von Variablen an CGI-Skript
(6 answers)
Opened by gmafx at 2010-10-22 21:50 2010-10-22T19:50:20 gmafx Ein Test auf ein leeres Array geht lesbarer: Code (perl): (dl
)
1 2 3 @folders = grep {/ome/} readdir DIR; if (! @folders) { # oder: if (scalar @folders == 0) ... btw: use strict; use warnings; erspart extrem viel Ärger ;-) Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? -- Brian Kernighan: "The Elements of Programming Style"
|