in reply to Numerically sorting array items containing delimited strings
That will set off warnings though. (as well it should)$str = "0.56HI There!"; $str += 10; # $str now is "10.56"
Update: Read Fastolfe's note and other people's suggestion of cmpsub bypre { substr($b,0,index($b,"+")) <=> substr($a,0,index($a,"+")); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Numerically sorting array items containing delimited strings
by Fastolfe (Vicar) on Nov 30, 2000 at 00:30 UTC |