Mystik Gotan said: > I can't really figure out what the purpose of wantarray() is. > Can someone please give me a good, decent explanation?
C<wantarray> is the function which tells you in which context your subroutine was called - void, scalar or list. This means, what will happen to the data you return from the sub? Will it be used as a list, as a scalar, or will it be thrown away? You might want to return different values, depending on what will happen to them. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]