I have realised I have made an error by making object argument names _object seeing that is is against the local variable declaration

Maybe I'm dense today but I don't comprehend this statement. I see no problem with naming your object fields _foo. As long as _foo is descriptive of what the object is. About the only thing you run into is the perl convention that variable names starting with _ denotes a private variable that should not be modified

Personally I do note try to put anything in a name to denote it's type (I was scarred by early MS hungarian notation). I much prefer a descriptive name that tells me what the variable is in an overall sense than in any type of type sense (hence cgi is better than _cgi for me since I pretty much know, by convention, that cgi is going to be sometype of CGI object).

-derby

In reply to Re: Conventions with Passing Objects to Objects by derby
in thread Conventions with Passing Objects to Objects by zxViperxz

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.