in reply to Re^3: Hi Monks could you pls help Perl dummy user
in thread Hi Monks could you pls help Perl dummy user

It checks all your directories and prints files that bigger than 200?
  • Comment on Re^4: Hi Monks could you pls help Perl dummy user

Replies are listed 'Best First'.
Re^5: Hi Monks could you pls help Perl dummy user
by LanX (Saint) on Dec 17, 2014 at 02:06 UTC
    it descends only one level, because the second read_dir gets a one-dir path which isn't valid from top level.

    either use chdir $dir; and chdir '..' at start and end or keep a full path.

    you already got full functioning code with File::Find , better use it.

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)