esr has asked for the wisdom of the Perl Monks concerning the following question:
I would like to call a subroutine with one of the parameters being either a scalar variable or an array reference. If I were to do that, is there a way in the subroutine to tell which has been specified?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Determining the type of a subroutine parameter
by moritz (Cardinal) on Aug 18, 2008 at 14:51 UTC | |
Re: Determining the type of a subroutine parameter
by FunkyMonk (Chancellor) on Aug 18, 2008 at 14:51 UTC | |
Re: Determining the type of a subroutine parameter
by Bloodnok (Vicar) on Aug 18, 2008 at 15:11 UTC |
Back to
Seekers of Perl Wisdom