Well, I can see your point, but these are only really partial solutions to the problem. For me the issue is that these are relatively one off scripts, however they must be repeatable (months later I may need to go back and regenerate exactly the same data). Just as in OO we strongly bond our procedures with our data, I believe the same thing for data mungers applies.

If I went the naming route I would still end up with hundreds of <500byte files in my directory, with the possibility of the data being changed or the scripts going missing. When they are strongly bound I can assure myself that no-one else has changed them (or at least that they have indeed been changed), also that when I move them around they are an atomic unit, and that the only way they go missing is if I lose both the data and source.

Hmm, thinking about it, I suppose I could use alternative data streams to store the perl code, which would solve the binding issue, after all I am on a modern OS. (heh, its not often a MS user can say that...)

:-)

Yves / DeMerphq
--
This space for rent.


In reply to Re: Re3: A little Christmas switch wish.. by demerphq
in thread A little Christmas switch wish.. by demerphq

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.