in reply to Re^3: BEGIN and compile-time
in thread BEGIN and compile-time

But in the above code I wouldn't know at the time I was calling import.

However, I think I've got it nailed down in this node.

Basically, the import happens after all the messing about, so I don't need to do anything - the 'use' at the script level will call import after I've finished loading things.

Replies are listed 'Best First'.
Re^5: BEGIN and compile-time
by Mutant (Priest) on Nov 02, 2006 at 13:09 UTC
    Yep, agreed, Anonymonk's solution is more elegant.