Hello Aldo

I guess that what I want to do is not possible without creating new basic variable types. This project is for an OSS database abstraction layer that I wrote that automatically scavenges the db for meta information, creates classes to represent rows in tables. Each class then uses a collection of the Datum instances. This Datum class does type checking based on it's SQL type in the DB, and formats things correctly. You can provide additional type checking by configuration file (like dbname.table.colum Datum's must be all CAPS).

My purpose in posting was to find a way to make coding with these objects faster by getting rid of using methods to update/get the values of the Datum instances. Using the overload+tie kinks above give me most of what I need. Too bad you cannot overload the assignment operator.

Again, thanks to all all for your input.

rr


In reply to Re: Re: How might I return tied scalar that does not have to be dereferenced as $$scalar? by rr
in thread How might I return tied scalar that does not have to be dereferenced as $$scalar? by rr

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.