in reply to Re: passing number of files in directory to subroutine
in thread passing number of files in directory to subroutine

OK, but I thought that if it the data was in a array the order was the same as whwn you added the values in. (unlike hashes which I know are 'unordered'). There is nothing wrong with the Calc routine by the way .. that has been throughly tested.
  • Comment on Re^2: passing number of files in directory to subroutine

Replies are listed 'Best First'.
Re^3: passing number of files in directory to subroutine
by rev_1318 (Chaplain) on Sep 23, 2005 at 11:47 UTC
    I thought that if it the data was in a array the order was the same as whwn you added the values in

    Yes, but the order in which the files are added to your array are not by default in alphabetic order. Most of the time, you get then in a different order, e.g. based on inode.

    Paul