>>>>> "CS" == Chris Stinemetz <cstinem...@cricketcommunications.com> writes:

  CS> I am trying to return new values based on if else. I understand
  CS> the idea of using if else, but I am not sure I have placed in the
  CS> right place.  I was assuming I would want to insert it before the
  CS> array is sorted.  Thank you in advance. This mailing list is
  CS> helping me understand perl greatly!

if/else DOES NOT return a value. where did you even get that idea? if
you want to choose between two values, use the ?: ternary operator. read
about it in perldoc perlop. if you need help with it, ask again here.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to