Thread Anfängerfrage Unterstrich (18 answers)
Opened by lern_noch at 2023-01-31 11:42

 2023-02-01 22:04
#194632 #194632
User since
469 articles

user image
2023-02-01T19:40:49 haj
  • Anstelle der impliziten Nutzung von $_ solltest Du Deine Zeilen gleich in eine "eigene" Variable schreiben:
    Code (perl): (dl )
    while (my $soll = $datei){

Das gibt eine schöne Endlosschleife ;)
Zeilen einlesen vom Handle:

Code (perl): (dl )
while (my $soll = <$datei>){ ... }
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"

View full thread Anfängerfrage Unterstrich