From:                   Jeff Pang <[EMAIL PROTECTED]>
> This discussion let me think a thing that, one of my co-workers, who
> is good at both C and perl programming. When coding with Perl, he
> always like to put a 'return 0' on the end of each subroutines (maybe
> learn the habit from C?). So for his packages, the methods which were
> executed successfully will return 0. I think this behavior will make
> confuse for another perl caller. Is this not good prac  on Perl style? 

It would definitely confuse me. And drive me up the wall. 
I would kinda expect this from a module that's just a thin wrapper 
around a C library, but from an OO module that was written in Perl? 
Nope.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to