in reply to Re: Object Awareness
in thread Object Awareness

Thank you, and thanks for the note about pop and use warnings Works perfectly :>

Replies are listed 'Best First'.
Re^3: Object Awareness
by GrandFather (Saint) on Mar 10, 2008 at 10:38 UTC

    Just to amplify a little - you should always use strictures (use strict; use warnings) because they give you early warning about issues. Those issues may be as simple as a typo, or more subtle as in your case. Use strictures with every Perl program you write and take note of any errors or warnings that are produced.


    Perl is environmentally friendly - it saves trees
Re^3: Object Awareness
by locked_user sundialsvc4 (Abbot) on Mar 10, 2008 at 14:05 UTC

    Unfortunately, Perl somewhat goes back to the philosophy held by an early (and probably apocryphal) COBOL compiler which, when given a copy of Lincoln's Gettysburg Address as input, “compiled it.”

    The philosophy of “there's more than one way to do it” presupposes that the writer knew what he was doing and that your (the computer's) interpretation is, if not correct, at least plausible. This is not necessarily the case.

    So you just need to begin every Perl program-file with... "shebang ... use strict ... use warnings ..."