[ABE.pm] self-modifying data structures
Faber Fedor
faber at linuxnj.com
Tue Jun 5 17:49:26 PDT 2007
On 6/5/07, Ricardo SIGNES <rjbs-perl-abe at lists.manxome.org> wrote:
>
> * "Faber J. Fedor" <faber at linuxnj.com> [2007-06-05T12:11:23]
> > IOW, I want my program to modify its source code/file by updating a data
> > structure within the program/file. I think the __DATA__ tag is going to
> be
> > useful here but I'm not sure.
> >
> > Any suggestions on how to do this?
>
> Yes: don't.
>
> Instead, put the data in another file.
Well that's no fun!
Updating __DATA__ is a recipe
> for global devastation the likes of which the world has never seen before.
Fist you say "Don't do it" and then you give me a reason to do it. Make up
your mind!
One of these days I'm going to figure out how to write self-modifying code.
--
Faber
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/abe-pm/attachments/20070605/d363b702/attachment.html
More information about the ABE-pm
mailing list