Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: a lil help on file extension

by CukiMnstr (Deacon)
on Jun 10, 2003 at 02:46 UTC ( #264527=note: print w/replies, xml ) Need Help??


in reply to a lil help on file extension

...and you probably want to stick a /i modifier, in case the extension is in uppercase, or mixed case:
unless ( $file_names =~ m/\.html?$/i ) { ... }

hope this helps,

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2020-02-21 20:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (97 votes). Check out past polls.

    Notices?