Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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


Comment on Re: problems with advanced array sort
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://552331]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2014-10-23 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls