I am sure you have your reasons by why do you need to use the external dir and not something like File::Find::Rule ? Even plain File::Find can help if you cannot install FFR.
That could eliminate the need for the grep as well. Gabor On Tue, Jan 13, 2009 at 8:48 PM, Shmuel Fomberg <[email protected]> wrote: > Hi All. > > I have the following code: > open(FH, "dir $dir /s /b | grep mbd | wc |"); > $wc = <FH>; > ..... > > (the environment is cygwin, with Perl 5.6) > > However, when I wanted to do the greping myself, I wrote this command: > open(FH, "dir $dir /s /b |"); > > And then "dir" complained that it can't find the /s and /b directories. > > Any idea what is going on? _______________________________________________ Perl mailing list [email protected] http://perl.org.il/mailman/listinfo/perl
