Professional Web Applications Themes

Req advice on new module to be uploaded: Config::Magic? - PERL Modules

Hello, I'm new to developing perl modules for CPAN, but I just finished a lot of work on something I think others will find useful. Basically, what it does is p almost any kind of config file and convert it into a hash tree. It uses P::RecDescent, and the "language" it recognizes is a superset of most other config files. Because it has no configuration options, and is just supposed to work, I was thinking of calling it Config::Magic. I thought I'd check in here first to get feedback before I upload. I've already registered at PAUSE. Just to give ...

  1. #1

    Default Req advice on new module to be uploaded: Config::Magic?

    Hello,
    I'm new to developing perl modules for CPAN, but I just finished a
    lot of work on something I think others will find useful.

    Basically, what it does is p almost any kind of config file
    and convert it into a hash tree. It uses P::RecDescent, and
    the "language" it recognizes is a superset of most other config
    files. Because it has no configuration options, and is just supposed
    to work, I was thinking of calling it Config::Magic.

    I thought I'd check in here first to get feedback before I upload.
    I've already registered at PAUSE.

    Just to give the idea of what this does, here's an example input:
    Section 1 {
    [Section 4 ]
    #Comment Style 1
    \\Comment Style 2
    ; Comment Style 3
    Monkey:1
    Monkey=>2
    Monkey:=3
    <Section 2>
    Foo = Bar
    Baz { Bip:1
    Pants=5 }
    </Section>
    <Tasty Cheese="3" />
    <Section 5>
    Foo=Bippity,boppity,boo
    </Section>
    }
    And here's the corresponding output (inspecting the generated hash
    reference with Data::Dumper:
    $VAR1 = {
    'Section 1' => {
    'Tasty' => {
    'Cheese' => '3'
    },
    'Section' => [
    {
    'Foo ' => 'Bar',
    'Baz' => {
    'Bip' => '1',
    'Pants' => '5'
    },
    '2' => {}
    },
    {
    'Foo' => [
    'Bippity',
    'boppity',
    'boo'
    ],
    '5' => {}
    }
    ],
    'Section 4 ' => {
    'Monkey' => [
    '1',
    '2',
    '3'
    ]
    }
    }
    };


    So my questions are:
    1) Do you think the name is appropriate and searchable? If not, do
    you have any suggestions?
    2) Does anyone else know of any all-encompassing config modules
    like this? I couldn't find any, but there's a lot of stuff in CPAN
    (Config::Auto does not have this degree of flexibility)
    3) Anyone here interested in giving it a try (I'll announce on
    comp.lang.perl.announce when it's uploaded)?

    Let me know shortly if you would. Thanks!

    Rusty Phillips
    Rusty Phillips Guest

  2. #2

    Default Re: Req advice on new module to be uploaded: Config::Magic?

    Okay...I guess nobody here actually cares about that.

    So I'll just upload my module as Config::Magic.

    Rusty Phillips Guest

Similar Threads

  1. ANNOUNCE: New module Sys::PortIO 0.1 uploaded to CPAN
    By Andrew Ho in forum PERL Modules
    Replies: 0
    Last Post: March 5th, 06:34 PM
  2. Noob Q: Ways for module to find config file?
    By J Krugman in forum PERL Modules
    Replies: 3
    Last Post: March 3rd, 06:40 PM
  3. Config::Magic .72 released
    By Rusty Phillips in forum PERL Modules
    Replies: 0
    Last Post: June 23rd, 02:10 AM
  4. Replies: 6
    Last Post: October 31st, 02:34 PM
  5. Bad magic number in super-block (urgent advice needed)
    By Loren Coe in forum Linux Setup, Configuration & Administration
    Replies: 3
    Last Post: July 3rd, 12:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139