Problems? Is your data what you think it is? | |
PerlMonks |
Re: __DATA__ used in BEGINby KurtSchwind (Chaplain) |
on Nov 06, 2007 at 13:18 UTC ( [id://649210]=note: print w/replies, xml ) | Need Help?? |
Like others have said, you can't ref the DATA block in the BEGIN section. And a HEREDOC isn't a bad solution, but if you'd like to better seperate the logic from the code and have it in your BEGIN section, you could use a do to a seperate file that has the HEREDOC in it. This might lead to a bit of a cleaner design.
-- I used to drive a Heisenbergmobile, but everyone I looked at the speedometer, I got lost.
In Section
Seekers of Perl Wisdom
|
|