Thank you both for cheering me up. Actually it wasn't that bad anyway. :-)

As for the ruby part: They constantly claim to be so very clean in design and everything (which perl doesn't :) and then such things annoy me. If a language was very good designed it should not allow the changing of a passed parameter without the caller explicitly allowing it IMHO, but that's probably just a matter of taste. Using just a convention is not good design because it can be avoided.
In my early C-days I "invented" a convention for myself which pretty much was OO design (without knowing anything about OO) and one would hardly find a compiler whichs tells me when I'm wrong with my own conventions *grin*

Since I (almost) always use the my ($val1,$val2) = @_;-way of passing args I'm not feeling endangered here.

Anyway, I like coding in perl most of the time (until it gets to complex datastructures), I kinda enjoy coding in ruby, too (which I do for just two weeks now) and so I'll switch desktops soon...

Regards... Stefan


In reply to Re: Re: Re: Re: style q: duplication? of variables by stefan k
in thread style q: duplication? of variables by thpfft

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.