Hi Rob,
Just'd like to add my $0.02 to the brilliant solutions you offered. )
You can access the anonymous arrays from @desc using
>
> foreach my $rest (@desc) {
>print "@$rest\n";
> }
>
> Or just...
say "@$_" for @desc;
... if one prefers conciseness - and is able to use 5.010, of course
On 27/01/2012 10:14, Owen wrote:
In the program below, I think I end up with an array of array
references.
But I can not get back the @rest from @desc where it is stored.
Is it possible that @rest is just over written? Might have to think
about doing something else. I can't use hashes as data
In the program below, I think I end up with an array of array
references.
But I can not get back the @rest from @desc where it is stored.
Is it possible that @rest is just over written? Might have to think
about doing something else. I can't use hashes as data elements are
sometimes duplicated.
Rob Richardson wrote:
Greetings!
I am seriously confoogled about how to get my array back from a
reference. This is the train scheduling program you've been hearing a
lot about from me. The array holds the names of the crew members on
the train. The train object is created with the following ro
Greetings!
I am seriously confoogled about how to get my array back from a
reference. This is the train scheduling program you've been hearing a
lot about from me. The array holds the names of the crew members on
the train. The train object is created with the following routine:
sub new
{
On Thu, Aug 23, 2001 at 09:31:52AM -0400, Craig Moynes/Markham/IBM wrote:
> This round I have encountered another similar problem. The code sample
> works for printing out the scalars, but when I attempt to print out the
> arrays instead the size of the arrays are printed, causing no end to
> co
Wags helped me with the last problem (though we are still unsure of the
reason for the behavior).
This round I have encountered another similar problem. The code sample
works for printing out the scalars, but when I attempt to print out the
arrays instead the size of the arrays are printed, cau