Can you explain what your trying to achieve??

You want an array called @data which consists of all the elements from
@dataumi2? Where does the second array with empty element values come from,
why is it needed?

to assign @data with all the elements from @dataumi2 do this

@data = @dataumi2;

-----Original Message-----
From: Matija Papec [mailto:[EMAIL PROTECTED]]
Sent: 30 July 2001 17:06
To: [EMAIL PROTECTED]
Subject: arrays



Program below works fine but I wander how to optimize this; it looks very
ugly. The final result have to be @data which contains two arrays. First
array have to be equal size of second array(@datumi2) and all their values
have to be "".

----------------------
my $i;
my (@datumi2) = (1..100);
my (@temp, @data);

# block for optimization

for $i (0..$#datumi2) { push @temp, "" }
push @data, \@temp;
undef @temp;

# end of block for optimization

push @data, \@datumi2;
.
.
.


-- 
Matija

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------Confidentiality--------------------------.
This E-mail is confidential.  It should not be read, copied, disclosed or
used by any person other than the intended recipient.  Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful.  If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to