numeric values in a list
- From: "a" <a@xxxxxxxx>
- Date: Wed, 14 Sep 2005 19:19:07 GMT
I would like to do the following:
my list = (100,2,5); #create a list
my @sorted = sort {$a<=>$b} list; #sort ascending
#want @sorted = (2,5,100)
What's wrong with my list with numeric values?
Thanx
.
- Prev by Date: Re: use hash in a list
- Next by Date: Out of Memory
- Previous by thread: use hash in a list
- Next by thread: Out of Memory
- Index(es):