in reply to Too many files

How can I get rid of this?
I assume "this" are the current and parent directories. If that's the case, change

print $path;
to
print $path if ( some_test_or_another );

What do you think some_test_or_another should be?

Replies are listed 'Best First'.
Re^2: Too many files
by nessundorma (Initiate) on Jun 03, 2008 at 16:37 UTC
    some_test_or_another is $path != current_directory which does seem to work, thank you. Before I had been trying to do something similar, with the if statement before the print statement instead of hooked onto the end, and for some reason could not get the script to work
      If you post your code, the Monks could give more specific advice. Otherwise, we're forced to look at the entrails of a goat, which is far less precise.