Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

RE: variable comparison

by muppetBoy (Pilgrim)
on May 25, 2000 at 17:41 UTC ( [id://14742]=note: print w/replies, xml ) Need Help??


in reply to variable comparison

You could try something like:
if ($file !~ /$ext/) { ..do something if $file does not contain $ext.. }
I think this is what you are after....
Update: Sorry I didn't see the . in the .htm. That will break this solution as the . will resolve to 'any character'.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-19 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found