Syntactic Confectionery Delight | |
PerlMonks |
Re: Using __DATA__ from a packageby DrHyde (Prior) |
on Jun 18, 2013 at 11:37 UTC ( [id://1039548]=note: print w/replies, xml ) | Need Help?? |
Like this:
I made two changes to your code. First, the file handle is always DATA, not PackageName::DATA. Second, I made the package return true, so that you can use it. If you want to see some real-world examples, then check out these tests (and the modules under t/lib that they use) or Number::Phone::UK::Data
In Section
Seekers of Perl Wisdom
|
|