View Single Post
  #22  
Old 06-03-2009, 06:19 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Actually, it should be $class eq "Warrior" with double quotes. Using single quotes is an array of char's, while double quotes is used for strings. Maybe why it didn't work. I like the way you do it now with the hashes. That's pretty slick. I love perl.
Reply With Quote