Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: getting more from __DATA__

by Ctrl-z (Friar)
on Mar 25, 2005 at 00:25 UTC ( [id://442232] : note . print w/replies, xml ) Need Help??

in reply to Re: getting more from __DATA__
in thread getting more from __DATA__

yup, thats pretty like it.

With no disrespect to unwitting pawns or evil masterminds, I was going for more user-friendly than "It is possible that this module may overwrite the source code in files that use it". ;-)

Providing full-on writable handles is neat, but a little heavy - at least for my needs.

time was, I could move my arms like a bird and...

Replies are listed 'Best First'.
Re^3: getting more from __DATA__
by belg4mit (Prior) on Mar 25, 2005 at 13:05 UTC

      Sure. And what about the backing-up, source-filtering, redirecting of CORE functions and 600 lines of fairly convoluted code?

      My initial idea was to simply keep large strings out of the source code - tied handles could still be implemented easily:

      use Tie::DATA(':foo', sub{ return($_[0], IO::String->new($_[1])); });

      time was, I could move my arms like a bird and...