in reply to Re: sub running on use statement
in thread sub running on use statement

You're correct - the output is as you state. Apologies for the error. I was a bit fuzzy at the end of a long day.

You're also correct about the calls to other subs in other modules. I've had a practice of taking segments of code that I use in several modules or scripts and putting them into subs in another module.

I hadn't seen this "use statement execution" before, though. I've used print statements often when testing out the code I'm putting into a module, to check that the sub is working as intended.

Most of these aren't explicitly conditional print statements, because I want to see what's happening with variables at the point in the sub where the print statement is.

But I don't recall having put a print statement outside of other conditional blocks before. This one was right at the start, before anything else happened - I needed to check to ensure that the sub call was happening.

Thanks for your response. You did clear up something that I was uninformed about with regard to sub-routines and modules.