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

Sorry, that code snippet wasn't very clear... @foo is just the list of what you want to import.

Replies are listed 'Best First'.
Re^4: BEGIN and compile-time
by jbert (Priest) on Nov 02, 2006 at 12:08 UTC
    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.

      Yep, agreed, Anonymonk's solution is more elegant.