Listers,
I have a perl event ftp processor, which is driven by a .ini file.
Is there any way to call a function based on what is defined in the .ini file.
ie.
[txt]
destination=ftp.someserver.com
preprocess=foo
[dat]
destination=ftp.somewhereelse.com
Would like to have a line if preprocess is defined, to call the foo function.
Do not want to have a large if condition test for each possibility.
I have a perl event ftp processor, which is driven by a .ini file.
Is there any way to call a function based on what is defined in the .ini file.
ie.
[txt]
destination=ftp.someserver.com
preprocess=foo
[dat]
destination=ftp.somewhereelse.com
Would like to have a line if preprocess is defined, to call the foo function.
Do not want to have a large if condition test for each possibility.