Re: Parsing wildcards in file names
by Michael Bahr other posts by this author
Sep 26 2000 1:03PM messages near this date
Parsing wildcards in file names
|
FW: DB_File install hickup
Steven try this,
if (-e $dir)
{
opendir (DIR, $dir) or print "serious dainbramage: $!\n";
@certainFiles = grep { /\*\.exe/ }
readdir (DIR);
closedir (DIR);
}
else
{
print "$dir does not exist. Please check spelling\n";
exit;
}
This should filter out your all the exe files and sort them.
Mike...
--
jedi@[...].net Michael Bahr
On Tue, 26 Sep 2000, Wechsler, Steven wrote:
> Can someone point me to a module that parses file name wild cards a la a
> Unix shell
>
> e.g.
>
> *.exe becomes:
>
> a.exe
> ab.exe
> bc.exe
>
> etc.
>
> Thanks,
>
> Steve
> --
> Steve Wechsler/Application Manager/Wall St. Access
> Steven.Wechsler@[...].com
> "There is no reason anyone would want a computer in their home."
> -- Ken Olson, president, chairman and founder of DEC, 1977
> Support Anti-Spam legislation: http://www.cauce.org
> _______________________________________________
> ActivePerl mailing list
> ActivePerl@[...].com
> http://listserv.ActiveState.com/mailman/listinfo/activeperl
>
Thread:
Wechsler, Steven
Michael Bahr
|