Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: problems with advanced array sort

by ultibuzz (Monk)
on May 29, 2006 at 15:59 UTC ( #552331=note: print w/replies, xml ) Need Help??

in reply to problems with advanced array sort

hi all,

sorry for my late response, thx for the great help, i really like the short one at the end

i still have some problem with this sort thing
the sequence numbers goes from 1-9999 or from 1-400
after the 400 the 1 is the next number,and i dont get how i can mangae this with any of the sort subs

so the filenames will be 0399,0400,0001,0002
this is the correct order

with the normal sort funktion it work ,sort {$a cmp $b}, how can i implement it in the more complex versions ?

kind regards ultibuzz

Replies are listed 'Best First'.
Re^2: problems with advanced array sort
by Anonymous Monk on Jun 01, 2006 at 14:26 UTC

    What? This is either ambiguous or stupid. Your call.

    Your example 0399,0400,0001,0002 and the ranges 1-9999;1-400 you mentioned above imply that the full sequence goes 0001, 0002, ..., 0399, 0400, 0001, 0002, ..., 0399, 0400, 0401, ..., 9999. How am I supposed to know whether any number between 1 and 400 falls into the earlier or later range of the full sequence?

      your right this is a problem of the software deliverd to us
      normaly you dont get a full sequence each day, so you can be quit sure if everything is ok, we can only see after a month if realy everything was ok or not you only have a 1-400 sequence or a 1-9999 sequence not both 2 different systems

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://552331]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2018-04-25 11:55 GMT
Find Nodes?
    Voting Booth?