Without using $key == $cid, 
How to construct a pattern so that $key match $cid.
I do not understand why in the undermentioned script, $key match $cid.
All explanations would be very much appreciated.
Thanks

use strict;
my $cid = '';
my $key = '1234';
if ($key=~/\b$cid\b/) {
    print 'true';           
}else {print 'false'};



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to