>>>>> "PK" == Parag Kalra <paragka...@gmail.com> writes:
PK> Hi, PK> On shell, successful command returns exit status of 0. PK> As a best practice what status value shall a Perl function return. a shell command is NOT a function call. comparing them is useless. PK> Going by the fact that Perl function returns the value of last command PK> in it, I think function should return non-zero for a success. and why would you think that? how would you know what the real return value is (from return) if it returned non-zero for success? try to define success for all functions? 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/