in reply to Re: Can an if statement run within a foreach loop?
in thread Can an if statement run within a foreach loop?

Like I said, first time post, but thanks for the link read. I've been using Perl for all of 2 weeks, so sorry if I seem like a dummy. The problem was that I wasn't including the first if statement with tableSize2One and like you said had an orphan elseif. I figured I could just put the foreach inbetween, but I was wrong. That and the && needing to be switched to || my bad that was just a silly mistake. Thanks for your help I got it solved quickly with it. :D -T
  • Comment on Re^2: Can an if statement run within a foreach loop?

Replies are listed 'Best First'.
Re^3: Can an if statement run within a foreach loop?
by GrandFather (Saint) on Apr 21, 2006 at 04:31 UTC

    Welcome to Perl and to The Monastery.

    Newbie rather than dummy! Glad you sorted the problem out and happy to help.


    DWIM is Perl's answer to Gödel