On 8/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm reading the book Programming the Perl DBI to start work with > databases. The DBI portion I'm getting OK, but I find the reference > here to @$ confusing. (This code is based from the book.) snip
It is funny that you use the word reference, because $array_ref is a reference to an array (hence its name). There are several ways to access the array referenced by $array_ref. If you want a specific element you can say $array_ref->[0] if you want access to the whole array you can say @$array_ref. You can read more about reverences in perldoc perlreftut (also available as http://perldoc.perl.org/perlreftut.html). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/