Perl is full of implicite things. It's one of the things that makes Perl, Perl.

Yes, but implicitness isn't always a good thing:

time / sin; ... $attributes = /^\w+: .*$/gm; ... sin / 25 ; # / ; does this work?; time / 30 ; # / ; does this?;

It's that same power to leave certain things unsaid that also enables stuff like this.

Oh, goodie. A convention that hardly anyone uses, and which requires you to inspect the source code instead of checking the documentation.

Wanting people to be able to deduct something just from looking at one line of code does not preclude one from documenting said line of code. Did I say you shouldn't document your code, or that calculated use of return statements is a suitable substitute for POD? No? Then why are you suggesting I said that?

Why is it OK to use implicite arguments for shift?

Because it isn't ambiguous. shift with no arguments inside of a subroutine shifts @_. Although honestly, there are times I'm not crazy about @_ either, but that's all I've got.


In reply to Re^11: "advanced" Perl functions and maintainability by William G. Davis
in thread "advanced" Perl functions and maintainability by geektron

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.