G
geoffrobinson
Hi,
I have to do some error-checking on particular files. The routines I
will be calling will have the same name, but they need to be from
different modules based on a variable. (version 1.1, 2, etc.)
I assume that if I write "use Module1" within an if-block it will only
have scope within the if-block.
I'm trying to think of other options as well. "use only" doesn't quite
work because a single run of the script may want to call 1.1 and 2
during the same run, but at different times. In other words if file 1
needs a 1.1 error-checking routine, I want to use that, let it go out
of scope, and then use 2.2 if file 2 needs 2.2.
Please let me know if I am being unclear or confusing.
thanks for any help in advance,
Geoff
I have to do some error-checking on particular files. The routines I
will be calling will have the same name, but they need to be from
different modules based on a variable. (version 1.1, 2, etc.)
I assume that if I write "use Module1" within an if-block it will only
have scope within the if-block.
I'm trying to think of other options as well. "use only" doesn't quite
work because a single run of the script may want to call 1.1 and 2
during the same run, but at different times. In other words if file 1
needs a 1.1 error-checking routine, I want to use that, let it go out
of scope, and then use 2.2 if file 2 needs 2.2.
Please let me know if I am being unclear or confusing.
thanks for any help in advance,
Geoff