It looks like mixing inheritance and __DATA__ tokens doesn't work too well. The method seems to persist in looking for a data section in the superclass that contains it, rather than the subclasses which have inherited it. Can anyone confirm this, or suggest a workaround which will allow me to use inline data in an inherited method?
(This is for a Class::DBI subclass which creates and repairs its own tables. The repair methods are contained in the usual subclass of cdbi, and the data classes inherit them from there. It's very handy for installations and upgrades, as well as making things generally more robust.
The table creation and repair works nicely, but I've run into trouble trying to make the data classes fill each newly-created table with the right default data. The obvious place to store it would be in the __DATA__ footer of each data class (as CSV, for now), which is where I run into the problem described above.)
thanks.