Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Useless use of string eq

by Flubb (Acolyte)
on Dec 06, 2007 at 16:38 UTC ( [id://655451]=note: print w/replies, xml ) Need Help??


in reply to Useless use of string eq

Thanks everyone. I had somewhere concluded that = was for numbers only, which made me look elsewhere for eq.
Re: Uppercase/Lowercase - I had stripped out the uc($var) bits but I forgot to tell you :( At somepoint there will be @ARGV checking, but I'm working my way slowly up!
-
Flubb

Replies are listed 'Best First'.
Re^2: Useless use of string eq
by cdarke (Prior) on Dec 06, 2007 at 16:53 UTC
    I had somewhere concluded that = was for numbers only

    Mixing up with comparison operators. It is == that is for numbers, rather than eq for strings.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-19 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found