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.
In reply to Re: Loading module data
by Corion
in thread Loading module data
by ady
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |