Newsgroups: comp.lang.perl.misc
From: jerrykrin...@gmail.com
Date: Tue, 13 May 2008 07:56:39 -0700 (PDT)
Local: Tues, May 13 2008 10:56 am
Subject: How to pass around an Array of Arrays (or Array Refs)
I need to pass an array of arrays from a function, but I can't make an
array of arrays work. Actually, I've got better results making an array of array references. Here's what I've done: #!/usr/bin/perl my @array ; # In real life I will return @array to the caller, but the my $nRows = @array ; } My expected result is: a00 a01 but the actual result is: a20 a21 What am I doing wrong? Thanks, Jerry Krinock You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||