Probably not. wantarray tells you what the caller wanted returned from a sub. ref tells you what a specific var is holding a ref to, which is what the OP is asking about.
---- I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
| [reply] [d/l] [select] |