splitOnce has asked for the wisdom of the Perl Monks concerning the following question:
I am familiar with open when dealing with a file but how do you do this with directory :-MainDir - dflk.cpp - dll.cpp - cll.cpp .. .. ..
thanksopendir MainDir or die ""; while <> `grep "theInfolookingfor" fileUnderDir > fileUnderDir.out` cloes dir;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: reading from directory
by CubicSpline (Friar) on Aug 19, 2002 at 23:12 UTC | |
by moodster (Hermit) on Aug 20, 2002 at 08:32 UTC | |
|
Re: reading from directory
by Arien (Pilgrim) on Aug 19, 2002 at 23:56 UTC | |
by splitOnce (Acolyte) on Aug 20, 2002 at 14:00 UTC | |
|
Re: reading from directory
by bart (Canon) on Aug 20, 2002 at 14:24 UTC |