To continue on from our CB conversation id like to see getVars() and setVars() bullet proofed. Currently its too possible to pollute the data. I propose switching to a new robust encoding (thats fast as well) and putting a version code on the strings. Something like '===01' as a magic number to start the strings (since this cant occur currently if I understand things right). Then convert to the new system on write. That way so long as folks use getVars() and setVars() they will always get their data through. This would resolve a longstanding nit of mine with settings. As I said before I had to rename Q&A_Section to QandASection to put it in the settings, likewise we've had trouble in the past with categorized answer and categorized question and underlining, deunderlining etc. Setting need/could need to store non \w chars all the time.

Sorry, a bit of free thought there for you...


---
demerphq

    First they ignore you, then they laugh at you, then they fight you, then you win.
    -- Gandhi

    Flux8



In reply to Re: patchable settings by demerphq
in thread patchable settings by ysth

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.