in reply to pushing file counts for adding

So, how does your program fail to work? What output do you get, and what output do you expect and how do they differ?

Note that glob also returns the names of directories, which may or may not be what you want.

You should check the chdir calls for errors. Maybe some of the directories don't exist where you think they should.

Replies are listed 'Best First'.
Re^2: pushing file counts for adding
by flieckster (Scribe) on Mar 21, 2016 at 15:18 UTC
    what i get now is a document on my desktop named count.txt with all the directory counted files in them. i just want to push that list of integers into another array so i can use it for calculations.

    10 28 7 5 3 1 47 7 1 10 11 14 115 2 40 9

      So, what parts of your program deal with pushing that list into another array, and how do the numbers fail to show up there? Or how are they different from what you expect?

        i was hoping to use PUSH to add the $filecount to a new array.
        print FILE "$filecount\n"; push (@finalcount, @fileslist); $filecount = @finalcount;