in reply to Re: Returning and passing data to and from subroutines
in thread Returning and passing data to and from subroutines
So if I change the shift to @_ that would make it work for arrays but what if I need to pass something like a scalier or a hash? Is there a way to check/handle this other than making more than one sub that preforms the same task just taking different arguments? Sorry I was confused on the use of shift and I was under the impression that shift did exactly that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Returning and passing data to and from subroutines
by ssandv (Hermit) on Jul 19, 2010 at 15:22 UTC | |
by vendion (Scribe) on Jul 21, 2010 at 04:05 UTC | |
by ssandv (Hermit) on Jul 21, 2010 at 15:34 UTC |