sundialsvc4:

Gentlemen, your time would be better served trying to constructively answer other people’s questions, and less time bashing other Monks.   If you don’t care for what someone else is saying, there’s a simple solution:   ignore that person.   Completely.   Politely.

I work on a very routine basis with lots of other languages besides Perl.   Maybe you don’t.   But, if you do, then this irregularity of Perl’s syntax, vis á vis other languages that you are (today, more ...) likely to encounter, is very confusing.   You expect a subroutine declaration to require a parameter-list enclosed in parentheses, even if that list is empty.   You expect that the position of the declaration within the source-code also does not matter, except to the extent that it binds it to a particular class or object.   You expect the behavior of the language to be consistently one way or another.   But, none of these things are true of the Perl-5 language.

“And that’s simply the way that it is.”

Just more flush worthy claptrap

Perl is pretty much the only language you write sub foo... and to get that far you'd have to read perlintro/perlsub ... its irrelevant what one is accustomed to, you can't make stuff up, and you can't get started without reading the docs


In reply to Re^4: why does location of function matter? by Anonymous Monk
in thread why does location of function matter? by smartyollie

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.