Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

RE: RE: file wildcards in Win32

by flyfishin (Monk)
on Jun 17, 2000 at 00:08 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://18545]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-24 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found