Thread Logikaufbau bei Parallel::ForkManager (36 answers)
Opened by bianca at 2013-09-27 10:20

bianca
 2013-09-29 07:49
#170794 #170794
User since
2009-09-13
6977 Artikel
BenutzerIn

user image
In der Doku zu CPAN:IPC::Run steht:
Quote
If pump() is called after all harnessed activities have completed, a "process ended prematurely" exception to be thrown. This allows for simple scripting of external applications without having to add lots of error handling code at each step of the script:

Danach ein Beispiel.
Bitte helft mir mal, das zu verstehen.
Soll ich nun die Methode harness() anstatt, vor oder nach start() verwenden?
Und wofür ist das genau da?
Was genau bedeutet der Satz "This allows for simple scripting of external applications without having to add lots of error handling code at each step of the script"?
Laut Google heißt das "Dies ermöglicht eine einfache Skriptsprache von externen Anwendungen ohne viel Code zur Fehlerbehandlung bei jedem Schritt des Skripts hinzufügen".

Kann mir das bitte jemand mit seinen Worten mal erläutern?
Vielen Dank
10 print "Hallo"
20 goto 10

View full thread Logikaufbau bei Parallel::ForkManager