readline: fix a bug that can't handle correct ReadLine class

simple mistake ... sorry
readline: refactor conditional expressions
Merge pull request #22 from co-me/readline-perl-bugfix

Fix a bug that can't handle correct ReadLine class