in reply to Configuration files

Well, the YAML module is pure perl, (and it seems to have no AutoLoader business), so it would probably be safe to just copy its source to your script. It's not very big either, the whole YAML module is 33K long, and if you want to read yaml only (not write), a bit fewer might suffice. I haven't tried this, so I can't promise anything.

(Or install ruby, which has yaml out of box.)

Replies are listed 'Best First'.
Re^2: Configuration files
by keyslapper (Novice) on Jan 01, 2005 at 18:19 UTC
    That might be an option. Of course, the script these requirements were written over is less than 10K, but I'm sure looking at the YAML code will offer some useful methods.

    And learning from someone else's code is always a good option :)

      You could do worse that Config::Tiny. Its INI file format, which is familiar to many, pure perl, and very short. So you include it in the distribution, or copy/paste it in.

        The OP specified he needed complex data structures, which Config::Tiny does not support. (I like it too though!)