Re: Picking Element from Array one by one
- From: Jahagirdar Vijayvithal S <jvs@xxxxxxxxxxxx>
- Date: Mon, 5 Dec 2005 12:54:27 +0530
* robic0 <robic0> wrote:
> On Thu, 1 Dec 2005 19:22:40 +0530, Jahagirdar Vijayvithal S
> <jvs@xxxxxxxxxxxx> wrote:
>
> Don't follow up my post, I never quoted any of this *** ***!
Duh! if you say so.
http://groups.google.com/group/comp.lang.perl.misc/browse_thread/thread/2ea159e6f5b383a1/881332f07aa6be68?lnk=st&q=Re%3A+Picking+Element+from+Array+one+by+one&rnum=1#881332f07aa6be68http://groups.google.com/group/comp.lang.perl.misc/browse_thread/thread/2ea159e6f5b383a1/881332f07aa6be68?lnk=st&q=Re%3A+Picking+Element+from+Array+one+by+one&rnum=1#881332f07aa6be68
>
>>Rita wrote:
>>> Hi All,
>>> I am getting some values from loop and i store all that value in array
>>> using push function.
>>try $start->{$start2}=$end2;# will work only of elements are not repeated
>>OR push $start->{$start2},$end2;# gets rid of restriction above.
>>then sort on keys of %{$start} and print key value pair
>>> 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.
>>
>>Regards
>>Jahagirdar Vijayvithal S
>
Regards
Jahagirdar Vijayvithal S
--
Why doesn't DOS ever say "EXCELLENT command or filename!"
Jahagirdar .V.S 91-80-25099129(O) 91-80-28540394(R)
IC Design Engineer RGES-WLAN,
Texas Instruments (India) Ltd.
.
- References:
- Picking Element from Array one by one
- From: Rita
- Re: Picking Element from Array one by one
- From: robic0@xxxxxxxxx
- Re: Picking Element from Array one by one
- From: robic0
- Re: Picking Element from Array one by one
- From: robic0
- Re: Picking Element from Array one by one
- From: Jahagirdar Vijayvithal S
- Re: Picking Element from Array one by one
- From: robic0
- Picking Element from Array one by one
- Prev by Date: Re: My experience with XML::DOM VS XML::LibXML
- Next by Date: Re: migrate data tables
- Previous by thread: Re: Picking Element from Array one by one
- Next by thread: substitution in open file
- Index(es):