in reply to Auto-detecting returned or passed variable type
Your challenge doesn't make sense from a Perl perspective. You are abusing the terminology.
The types of values a subroutine returns is not decided by the subroutine, but by the caller. Therefore, your challenge is meaningless. And it can never return "an array" or "a hash". It'll be a scalar or a list, depending on the context in which it's called.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Auto-detecting returned or passed variable type
by richard5mith (Beadle) on Aug 19, 2004 at 20:12 UTC | |
by merlyn (Sage) on Aug 19, 2004 at 21:01 UTC | |
by richard5mith (Beadle) on Aug 19, 2004 at 21:36 UTC | |
by merlyn (Sage) on Aug 19, 2004 at 21:41 UTC |