Matt,

First, make sure you CC the pdl list in your responses, then others can help when my limited expertise runs out. Second, I think you want the __PACKAGE__ token. That is, unless you've really uncovered a bug like Jarle thinks...

Derek

Matthew Kenworthy wrote:

On 07/03/07 09:19 -0700, Derek Lamb wrote:
Well, I've never made my own module before, so now you've just got me guessing. But if your module is called Foo, then does 'rcols *Foo::DATA' work? I'm just going on a statement in my book here that says "The __DATA__ token opens the DATA handle in whichever package is in effect at the time, so different modules can each have their own DATA filehandle, since they (presumably) have different package names."

I've tried a few combinations, but no joy yet. The *DATA has me on the
right path though! If I can work out how to print out what package is in
effect in the middle of the .pdl module, that'll probably be the
solution.

Thanks,

Matt


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to