Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: getting more from __DATA__

by merlyn (Sage)
on Mar 24, 2005 at 23:27 UTC ( [id://442225]=note: print w/replies, xml ) Need Help??

in reply to getting more from __DATA__

Inline::Files, perhaps?

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: getting more from __DATA__
by Ctrl-z (Friar) on Mar 25, 2005 at 00:25 UTC

    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...

        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...

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://442225]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-16 14:14 GMT
Find Nodes?
    Voting Booth?

    No recent polls found