in reply to Problem with array references
The second issue is that you are using symbolic references to get an array ref. That is to say you are looking up the reference points to the name of the array rather than a direct link to the array.
Is there any reason you can't push onto a plain old array or a dereferenced hard reference?
Here is an example with a hard reference;
use strict; my @test=qw(test trial good); my $testref=\@test; push @$test, "Testing";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Problem with array references
by Stamp_Guy (Monk) on Sep 25, 2001 at 07:52 UTC | |
by merlyn (Sage) on Sep 25, 2001 at 08:16 UTC | |
by Stamp_Guy (Monk) on Sep 25, 2001 at 08:23 UTC |