the final loop values.
> One solution: declare @mytemp within -- rather than outside --
> the loop. This allocates new memory for @mytemp during
> each loop iteration to prevent overwriting.
>
> while(<$myfile>)
>{
>($a, $b $c ) = getparameter();
>my @mytemp = (
On 2010-11-04 10:16, Christian Stalp wrote:
Hello together,
I try to write some arrays into arrays using references.
my ($a, $b, $c, @mytemp, $myref, @my_globael_array)
while(<$myfile>)
{
($a, $b $c ) = getparameter();
@mytemp = ($a, $b, $c);
$myref = \...@mytemp;
push(@my_glob
On Nov 4, 2:16 am, christian1...@gmx.net ("Christian Stalp") wrote:
> Hello together,
> I try to write some arrays into arrays using references.
>
> my ($a, $b, $c, @mytemp, $myref, @my_globael_array)
>
> while(<$myfile>)
> {
> ($a, $b $c ) = getparameter();
> �...@mytemp = ($a, $b, $c);
>
On Thu, Nov 4, 2010 at 4:16 AM, Christian Stalp wrote:
> Hello together,
> I try to write some arrays into arrays using references.
>
> my ($a, $b, $c, @mytemp, $myref, @my_globael_array)
>
> while(<$myfile>)
> {
> ($a, $b $c ) = getparameter();
> @mytemp = ($a, $b, $c);
> $myref = \...@myte
Hi Christian.
On Thursday 04 November 2010 11:16:46 Christian Stalp wrote:
> Hello together,
> I try to write some arrays into arrays using references.
>
> my ($a, $b, $c, @mytemp, $myref, @my_globael_array)
Your code won't compile - you've mis-spelt "global" and you're missing a
trailing semic
Hello together,
I try to write some arrays into arrays using references.
my ($a, $b, $c, @mytemp, $myref, @my_globael_array)
while(<$myfile>)
{
($a, $b $c ) = getparameter();
@mytemp = ($a, $b, $c);
$myref = \...@mytemp;
push(@my_global_array, $myref);
}
But if I dismantle @my_globa