in reply to Loading module data
Without seeing your code, I think you're trying to solve the wrong problem. At load time, all bare code within a module is run and you don't even need a BEGIN block. My guess is that your __DATA__ section and your module get mixed up. The DATA filehandle belongs to the __DATA__ section of the main program. If you want to read the __DATA__ section of your module, you need to use My::Module::DATA.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Loading module data
by ady (Deacon) on Apr 28, 2006 at 06:57 UTC | |
|
Re^2: Loading module data
by ady (Deacon) on Apr 28, 2006 at 06:31 UTC |