ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
string equivalency
by Brad Tilley other posts by this author
Aug 16 2006 6:42AM messages near this date
Re: Ruby is exploding onto the scene as Java did at the end of 1990s | Re: string equivalency
What's the best way to check if a string is not exactly what you're
expecting? I'm doing this:

b = 'brad'
if not b.eql?('bradsdhsh')
  puts 'not equal'
else
  puts 'equal'
end

Is there a more proper way to do it?

-- 
Posted via http://www.ruby-forum.com/.
Thread:
Brad Tilley
Robert Klemme
Brad Tilley
Robert Klemme
Joe Seeley

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved