Hi I am not a professional programmer. I don't work with or for any professional programmers (does it show???). I am merely an engineer whose toolbox includes some software languages. The thing that attracted me to Perl was the extensive library of modules. Lego blocks that I could join together to get things done. Not a new concept. I was using Coral66 back in the 1980's.
I thought that perl would be the ideal tool to do something as simple as copy ip settings from one file to another. What I found was two broken case type constructs that seem to have remained broken for at least a decade? with no fix in sight. A Unix config module that goes half way to solving a problem, but like a hammer with no handle, is not much use to anyone. Really clever code that needs a Rosetta stone to translate.
Of course only a bad craftsman blames his tools but a good tool should enable simple things to be done simply. In the hands of an expert, that is doubtless true for perl. I shouldn't need to be an expert. As a non-expert, this simple task has proven to be a lot more difficult than it should be. I did not expect to hit fundamental language defects and I did expect to find a module that would hide all of the cryptic clever code.

Dazz

In reply to Re^5: Yet another config file editing programme : Tell me how to make it better ! by dazz
in thread Yet another config file editing programme : Tell me how to make it better ! by dazz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.