in reply to repeated use of module and EXPORT

Maybe you should use Z; instead of require "Z.pm"; in package L  (require does not call import(), like use does).

Update: ah, sorry, overlooked that explicit call of Z->import(); ...

Replies are listed 'Best First'.
Re^2: repeated use of module and EXPORT
by rpelak (Sexton) on May 23, 2008 at 15:51 UTC
    yeah, that was a try at fixing it... I tried switching the use to a require and import, but that didn't work... the original test had just the use. I actually went a bit further, and defined my own import in Z and put some output in it, and found that it wasn't even being called when L uses Z. So then I had tried using require and calling import... no luck there either...