[Chicago-talk] How would I do this
JT Smith
jt at plainblack.com
Sat Mar 25 14:04:05 PST 2006
That I don't know. Maybe you just open a file handle to the whole file and Data::General
figures it out. Honestly though, I wouldn't use __DATA__ blocks for config. Instead, I'd
use something like JSON or YAML for config files. It's taint safe, human readable, fast
parsing, supports unlimited nesting and data structures. It's just good all the way
around.
On Sat, 25 Mar 2006 15:56:41 -0600
Jay Strauss <me at heyjay.com> wrote:
> On Saturday 25 March 2006 3:25 pm, JT Smith wrote:
>> I don't know, but I'd say it's expecting a reference from the FileHandle
>> object.
>
> It is but how do I get the __DATA__ into a filehandle?
>
> Thanks
> Jay
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
JT ~ Plain Black
ph: 703-286-2525 ext. 810
fax: 312-264-5382
http://www.plainblack.com
I reject your reality, and substitute my own. ~ Adam Savage
More information about the Chicago-talk
mailing list