in reply to Re: Getting all the direcotories
in thread Getting all the directories

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: Getting all the direcotories
by Aristotle (Chancellor) on Jul 07, 2002 at 16:20 UTC
    You inserted a comma behind chomp - so each iteration of map returns a list, consisting of the return value of chomp and then the value of $_. If you substitute a semicolon for the comma it will work fine. But you can do that without map: open I, "find $dir| "; chomp (my @file = <I>); See perldoc -f chomp.

    Makeshifts last the longest.