in reply to Help! Stuck on methods to count file size.

I guess your print statement must be as

print $fot join("\t",$Janlen, $length, $filename), "\n";

Hope this will do the needful.

Replies are listed 'Best First'.
Re^2: Help! Stuck on methods to count file size.
by haimei (Novice) on Oct 10, 2013 at 05:55 UTC

    Great!!! I got the result in the output file, thank you so much!. But I need the output in Desending order by file size for individual month. The month date and file name should automatically match their file size as well, so I can find the largest file with its date and file name. I am not sure which code can handle it.

    Here is the output:

    File sizes are displayed in the second column. I am not sure what are the numbers following FILENAME, such as 38, 33 , 38 ....

    Thank you for your wisdom, please enlighten me again!

    024 710 FILENAME 38 114 923 FILENAME 33 044 367 FILENAME 38 083 7864 FILENAME 39 153 783 FILENAME 33 084 864 FILENAME
      Search, read about sort rather than ask the Monks to do your work.
Re^2: Help! Stuck on methods to count file size.
by Anonymous Monk on Oct 10, 2013 at 23:47 UTC
    Sorry, I need the solution as soon as possible, so my friend registered the other site for me too. I apologize I made the this confusion. Please keeep helping me... Thanks a lot!