On Jan 23, 2004, at 1:27 PM, Eric Walker wrote:
[..]I have some code I want to add a package in the same file. I already have some _DATA_ in the file. Currently, the code is not seeing the _DATA_. How can I add a package in the same file then.
since the
__DATA__ vice _DATA_
has been addressed, my pet favorite way to include a package inside of a piece of code is
BEGIN { package Foo::Bar; .... }
That way it will be compiled early and so you can place it above the __DATA__ section since it is not 'data'.
ciao drieux
---
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>