in reply to Re: "if" and compound statement
in thread "if" and compound statement

As a general thing, it's often recommended to eat a serving of vegetables, and two pieces of fruit everyday. The OP's code would have failed regardless how much veggies and fruit he has consumed, however, the advice is still good!

Replies are listed 'Best First'.
Re^3: "if" and compound statement
by GrandFather (Saint) on Feb 14, 2012 at 19:24 UTC

    Sure, and if the OP had said he was a six year old Perl newbie I might have offered other good life advice too. But this is a Perl oriented site and the OP gave no such indication so I didn't. Strictures, strict in particular, are such useful tools for catching typos and other errors, that suggesting their use to self avowed Perl newbies is pretty much always good advice.

    True laziness is hard work
      But eating veggies is also always a good advice. This is a Perl programmer oriented site, and the OP did not give any indication he isn't a human, so it's a good thing for him to eat veggies. And fruit. Of course, it's utterly irrelevant for the problem he's asking about, but so are the strictures and warnings.

      Perhaps you ought to read: Why I left Perl

        Perhaps YOU ought to read it.

        That post is about scolding, repetition and reproach in the Perl community. Those are the things YOU are doing!