On Sun, Jul 19, 2009 at 18:31, Steve Bertrand<[email protected]> wrote: snip > At this point I really don't want to get into the ``perl'' internals, > but it must do some form of "wantscalar", much like I'd do a "wantarray" > for this type of warning generation. snip
If wantarray returns true then the function was called in list context, if it returns a defined false value it was called in scalar context, and if it returns undef it was called in void context. You may also want to look into the [Want][0] module which provides an even more broken down view of the context of the call. [0] : http://search.cpan.org/dist/Want/Want.pm -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
