Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

RE: RE: file wildcards in Win32

by flyfishin (Monk)
on Jun 17, 2000 at 00:08 UTC ( #18545=note: print w/replies, xml ) Need Help??


in reply to RE: file wildcards in Win32
in thread file wildcards in Win32

This will print all files that end in .h* or just .c. It will list .html files .htm files, etc. Surround the \.h|\.c with parens. Change
if ( $entry =~ /\.h|\.c$) {
to
if ( $entry =~ /(\.h|\.c)$) {
It also won't catch files that end in .H or .C if for some reason those are in caps. You can adjust accordingly.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://18545]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2021-01-24 16:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?