ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activeperl
activeperl
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved