in reply to Re^4: unless versus if ( ! ) inside a subroutine
in thread unless versus if ( ! ) inside a subroutine

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re^5: unless versus if ( ! ) inside a subroutine

Replies are listed 'Best First'.
Re^6: unless versus if ( ! ) inside a subroutine
by Wheeler (Acolyte) on Jan 17, 2008 at 18:28 UTC
    I forgive you for misreading/misinterpreting my text. I never stated I had a problem. I was looking for a simple answer to the question of why 'unless' evaluates differently than 'if' with respect to subroutines and returns--not "Hey, my code is broke..what is the best way to fix this!? Help!". While I appreciate your attempt to help, you didn't and that's ok. You should probably read and understand the question before popping off an answer. If I ask you your hypothesis on global warming, please don't tell me how to fix it--I'm looking for the cause. Thanks for playing, Chris
      I felt the answer was clear and disagree that you weren't helped by it.

      But then I've been programming for a long time and Re: unless versus if ( ! ) inside a subroutine instantly cleared up my confusion of the situation.

      I'd caution against such sarcasm, Chris. It's like the old joke, a man climbs onto his roof during a flood and asks God to save him; he rejects help from two boats and a helicopter (determined that God will save him) and eventually drowns, to which God tells him he sent two boats and a helicopter to save him.