so, your original try at it would have worked fine.

just to mess with your mind, you have other options than just call.
you could use include instead.
include loads the file before execution, so it doesn't matter in which part of the script you use it.
also, included UDF files do really get included and if you use tokenize, they are inbuilt with the tokenized script, so need for separate files.

or you could use the simple way of just pasting the udf at the bottom of your script file. that way you don't need to care about additional files at all. on the other hand, if your script grows, it might get a bit hard to find anything in the script, so it can be a downside as well.
_________________________
!

download KiXnet