in reply to foreach and opendir differences

Is there a preference or a best practice or doesn't it matter. I know I can do it as a one liner from a system call but I want to learn bad habits.
Dobby.

Replies are listed 'Best First'.
Re^2: foreach and opendir differences
by willyyam (Priest) on Apr 07, 2005 at 10:52 UTC

    ...but I want to learn bad habits
    Wow, so many to choose from. Smoking, not using strict, leapfrogging unicorns (bad, but not always practical - substitute rhinos if unicorns are unavailable) not wearing pants to work...
    I think bad habits are called that for a reason, but hey, do what you need to do.