Responsibilities Develop and maintain team internal web applications, which is part of our regression system. Qualifications Master degree in Computer Science or related fields Experience with web/database design. Experience with Postgresql Knowledge of Ruby on Rails is a big plus Note: San Diego, full time
i have the following code $forthChar = substr($tmpLine, 3, 1); print "--".$forthChar."--\n"; if ($forthChar == " ") { } else { print "not same\n"; } this is what i get
【在 q****c 的大作中提到】 : Responsibilities : Develop and maintain team internal web applications, which is part of our : regression system. : Qualifications : Master degree in Computer Science or related fields : Experience with web/database design. : Experience with Postgresql : Knowledge of Ruby on Rails is a big plus : Note: : San Diego, full time
【在 s*****w 的大作中提到】 : i have the following code : $forthChar = substr($tmpLine, 3, 1); : print "--".$forthChar."--\n"; : if ($forthChar == " ") { : } else { : print "not same\n"; : } : this is what i get
use eq instead of == for string comparison. Why don't you use regex $tmpLine =~ /^.{3} /
【在 s*****w 的大作中提到】 : i have the following code : $forthChar = substr($tmpLine, 3, 1); : print "--".$forthChar."--\n"; : if ($forthChar == " ") { : } else { : print "not same\n"; : } : this is what i get
【在 s*****w 的大作中提到】 : i have the following code : $forthChar = substr($tmpLine, 3, 1); : print "--".$forthChar."--\n"; : if ($forthChar == " ") { : } else { : print "not same\n"; : } : this is what i get