Re: Dereferencing an array

2012-01-27 Thread Igor Dovgiy
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

Re: Dereferencing an array

2012-01-27 Thread Rob Dixon
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

Dereferencing an array

2012-01-27 Thread Owen
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.

Re: Dereferencing an array reference

2003-07-20 Thread Wiggins d'Anconia
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

Dereferencing an array reference

2003-07-19 Thread Rob Richardson
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 {

Re: More problems printing dereferencing an array within an struct

2001-08-23 Thread Paul Johnson
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

More problems printing dereferencing an array within an struct

2001-08-23 Thread Craig Moynes/Markham/IBM
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