in reply to Why to wrap Perl classes inside a Perl script into blocks

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: Why to wrap Perl classes inside a Perl script into blocks
by Anonymous Monk on Jun 02, 2015 at 23:14 UTC

    sundialsvc4:

    perldoc package deserves careful and frequent re-reading, because the way that Perl handles this declaration is probably not what you would intuitively expect from your experience with other programming languages.   Also, follow the “packages in perlmod” link at the bottom of that perldoc page, and read both pages very carefully.

    Careful reading?

    $ perldoc package No documentation found for "package".

    Hmm, perl isn't the only programming language with a "package" keyword, but all the other languages that have it use it differently from one another

    Programmers don't guess that syntax in one language works identically in another , this is sundialsvc4ism/nonsense

      Howdy!

      The link works; the command line should have been "perldoc -f package". Reading it carefully is a useful thing. Anonymously snarking is not, especially when it is out of line in this case.

      yours,
      Michael

        Howdy! The link works; the command line should have been "perldoc -f package". Reading it carefully is a useful thing. Anonymously snarking is not, especially when it is out of line in this case.

        herveus, it is never out of line to snark at the ignorance of Mike "sundialsvc4" Robinson professional windbag

        So he linked the package docs, big deal, hes never read them, hes never used perldoc, hes talking out of the commode