Make data actually work dg/data
authorDavid Leadbeater <dgl@dgl.cx>
Wed, 12 Jan 2011 18:10:40 +0000 (18:10 +0000)
committerDavid Leadbeater <dgl@dgl.cx>
Wed, 12 Jan 2011 18:12:03 +0000 (18:12 +0000)
commitad3b2f82a487b3d393b420aa095472e935971c22
treeab2db3112dfdd50a22226afc0a2b6d40b6df9620
parent279ff374a227b7cfc9c91e47b4bf86ad2e2f9b91
Make data actually work

The main moves into a fatpacked file too, this is because 'tell DATA'
can't work during BEGIN blocks, as perl hasn't seen the __DATA__ to
create the filehandle.

I'm not too keen on this, it probably needs something like extracting
the pod from main so that perldoc fatpacked-file works correctly, it
breaks current cpanm as that relies on 'caller' returning false in main,
etc.
lib/App/FatPacker.pm