Hi Ben, ----- Original Message ----- From: Ben Miller Sent: 21.04.2004, 9:16 Uhr
>Hi Jan, > >Thanks for your help. That's what I need. I had tried something >similar earlier using () to surround the variable rather than []. My >next question is: when I try to print a specific member of the array >I get an error message if I use 'print $result[0];' for example. In >fact, any thing I try to do to the array such as list the number of >members returns an error. Since your scalar variable $return contains a reference to an array, you have to dereference it when accessing the array elements, either $$result[0] or $result->[0] I suggest you check out chapter 8 of Programming Perl or perldoc, which is usually recommended by the Perl wizards on this list. BTW, do you have to use a scalar in your loop? Or can you just use an array @result? - Jan -- Either this man is dead or my watch has stopped. - Groucho Marx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>