>
> following the script
> my @results = &do_sql_2D($dbproc, $query); ==> quries a mysql database
> foreach my $result (@results)
> {
> my ($status_id, $status_descr) = @$result; ##############need
> to understand this line....
> print "$status_id\n";
>
> }
>
In your inner loop $result is an array reference. It is a scalar
variable that refers to an array (apparently, in this case, of two
elements.)
perldoc perlreftut
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Lawrence Statton - [EMAIL PROTECTED] s/aba/c/g
Computer software consists of only two components: ones and
zeros, in roughly equal proportions. All that is required is to
sort them into the correct order.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>