On Tue, Sep 17, 2002 at 05:03:50AM -0400, Rum Pel wrote:

> A function definition in Perl doesnt require you to specify
> the return type - why is this so? Can a function return objects
> of different types under different conditions, or choose not
> to return anything at all?

Yes.  You can even find out what the caller is expecting.  Well, to an
extent anyway.

peldoc -f wantarray

Want.pm on CPAN

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to