Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Compare String...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 11034 of 11065
Post > Topic >>

Compare String is not match !

by dinhchung82@[EMAIL PROTECTED] (Vu Dinh Chung) May 7, 2008 at 08:55 AM

Hi all,
My code is below
*My code  runs;*
when run $array[$j][1] = 101-P-467593 ( this value is stored in excel 
file and this value input by hand ) and $accountNumber = 101-P-467593
*My code doens't run :*
when run $array[$j][1] = 101-P-467593 ( this  value  is stored in excel 
file and it is resulted  from query and export to Excel format )and 
$accountNumber = 101-P-467593 , We compare two values but The compare is 
not founded ?  --> if i change this value by hand , it is okie , 
comparation is successsful
I check in excel file for both case , the format is General .
I don't know why !
Advise me please !
Thanks

/
/*
/sub findEmailID {

    my $accountNumber = shift;

#    print "Finding Email Address for Account Number $accountNumber\n";


    my @[EMAIL PROTECTED]
 =  @[EMAIL PROTECTED]
    my $j = 1;

    while ( $j <= $#array) {

#     print "current account number is $array[$j][1]\n";

     if ( $array[$j][1] eq $accountNumber ) {

          return $array[$j][2];

      }

      $j++;

    }

 /*/
/




 1 Posts in Topic:
Compare String is not match !
dinhchung82@[EMAIL PROTEC  2008-05-07 08:55:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 23:30:11 CDT 2008.