Thread: Newbie armor
View Single Post
  #5  
Old 04-19-2005, 12:19 PM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

The main thing im concerned about is ...
Code:
if($text=~/accessories/i && $class == 'ranger')
The accepted operator for strings in perl is 'eq' not '=='.. and is considered a syntax error if interchanged because it can hinder or break performance.

The other thing is the use of &&.. its usually better to have multiple if statements..but thats just the way I would do it

If you fix your string operators, Ill sticky it
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.

Last edited by Cisyouc; 06-20-2006 at 06:45 PM..
Reply With Quote