mardi 15 septembre 2015

Wrapper for perl functions

I have around 10 functions written in perl. Certain functions are logging functions or long running functions. I need to write a wrapper file for this so that I can mix and match call to these functions.

for example I have functions like start_log, stop_log, do_long_task, func1, func2, etc.....

Now I have to create a text file which will define the sequence of tasks

Sequence1

startlog
after startlog call
In parallel
func1
func2

Loop
In parallel
func1
func2
end Loop 
stoplog

These sequences of task will be written in a text file. I need to write a wrapper which will call the functions in sequence given in the text file

Please suggest me how I can go about doing this or what is the easier way?

Thanks in Advance

Aucun commentaire:

Enregistrer un commentaire