>I've been trying to solve this problem using many techniques I found
>on the websites but still unsuccessfully
>
>sub func {
> my (@local_array) = @_;
>
> for (my $i=0;$i<@local_array;$i++) {
> for (my $j=0;$j<@local_array[$i];$j++) {
> print "$local_array[$i[[$j] ";
> }
> print "\n";
> }
>
>$myarray[0]=(1,2,3,4,5);
>$myarray[1]=(6,7,8,9,10);
>
>func (@myarray);
What exactly are you trying to do?
There are quite a few things wrong with your code.
e.g. You are missing a right curly bracket at the end of your subroutine.
You are also trying to put an array of numbers into a scalar.
You are using the array inside the loop
Too many square brackets.
etc, etc.
Explain what it is you want and we will help correct your code.
************************************************************************
The information contained in this message or any of its
attachments is confidential and is intended for the exclusive
use of the addressee. The information may also be legally
privileged. The views expressed may not be company policy,
but the personal views of the originator. If you are not the
addressee, any disclosure, reproduction, distribution or other
dissemination or use of this communication is strictly prohibited.
If you have received this message in error, please contact
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> and then delete this message.
Exide Technologies is an industrial and transportation battery
producer and recycler with operations in 89 countries.
Further information can be found at www.exide.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>