>>>>> "PK" == Parag Kalra <paragka...@gmail.com> writes:

  PK> Is this what you mean
  PK> ($exist) ? return 1 : return undef

  PK> I think even this should work

  PK> ($exist) ? 1 : 0;

he wants an empty list in a list context when returning the false value
so neither of those works.

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