R
Rita
Hi All,
I am getting some values from loop and i store all that value in array
using push function.
push @start,$start2;
push @end,$end2;
the start values are
68 801 968 40
and the End values are
320 830 995 56
then I sort values of array-
my @sort_start = sort { $a<=>$b } @start;
my @sort_end = sort { $a<=>$b } @end;
print @sort_start,"\n";
print @sort_end,"\n";
I am getting output
4068801968
56320830995
Is there any way that i can get output like this-
start -40
End - 56
start -68
End- 320
start-801
End -830
start-968
End-995
I cann't able to figure out that how i can pick elements of array one
by one.can you please help me?
Thanks.
I am getting some values from loop and i store all that value in array
using push function.
push @start,$start2;
push @end,$end2;
the start values are
68 801 968 40
and the End values are
320 830 995 56
then I sort values of array-
my @sort_start = sort { $a<=>$b } @start;
my @sort_end = sort { $a<=>$b } @end;
print @sort_start,"\n";
print @sort_end,"\n";
I am getting output
4068801968
56320830995
Is there any way that i can get output like this-
start -40
End - 56
start -68
End- 320
start-801
End -830
start-968
End-995
I cann't able to figure out that how i can pick elements of array one
by one.can you please help me?
Thanks.