Hi Chris,

On Fri, Jul 13, 2012 at 3:28 AM, Shawn H Corey <shawnhco...@gmail.com>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,$isector,$sector];
>>
>> call to subroutine:
>>
>> session_attempts($srt);
>>
>> Thank you in advance,
>>
>> Chris
>>
>>
> session_attempts( $data[0][0] );
>

    OR

   session_attempts( $data[0]->[0] );
    # though less readable and ofcourse you can do away with the arrow just
    as Shawn showed previous


>
> --
> Just my 0.00000002 million dollars worth,
>   Shawn
>
> Programming is as much about organization and communication
> as it is about coding.
>
>         _Perl links_
> official site   : http://www.perl.org/
> beginners' help : 
> http://learn.perl.org/faq/**beginners.html<http://learn.perl.org/faq/beginners.html>
> advance help    : http://perlmonks.org/
> documentation   : http://perldoc.perl.org/
> news            : http://perlsphere.net/
> repository      : http://www.cpan.org/
> blog            : http://blogs.perl.org/
> regional groups : http://www.pm.org/
>
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>


-- 
Tim

Reply via email to