Re: array ref as subroutine parameter

2012-07-12 Thread timothy adigun
Hi Chris, On Fri, Jul 13, 2012 at 3:28 AM, Shawn H Corey wrote: > On 12-07-12 10:25 PM, Chris Stinemetz wrote: > >> I have an anonymous array below and would like to know how to pass the >> first element to a subroutine as a parameter. >> >> push @data, [$srt,$srfc,$cfc,$cfcq,$cell,$**icell,$isec

Re: array ref as subroutine parameter

2012-07-12 Thread Shawn H Corey
On 12-07-12 10:25 PM, Chris Stinemetz wrote: I have an anonymous array below and would like to know how to pass the first element to a subroutine as a parameter. push @data, [$srt,$srfc,$cfc,$cfcq,$cell,$icell,$isector,$sector]; call to subroutine: session_attempts($srt); Thank you in advance