justme <> wrote:
> i have an initial string such as
> $initial = "qqqqqqqq";
> a user needs to input another string
> $string =<STDIN>;
> If this user were to key in exactly 8 q's then it will match and do
^^^^^^^^^^^^^
> something.
Perl has an operator for testing string equality, its name is "eq".
> But i have a problem when the user key in 5 or 6 q's, it will still
> match, which i do not want.
Then there must be something wrong with your code.
> how can i overcome this problem..?
By fixing your code.
We cannot help you fix your code because we cannot see your code...
--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas