Skip to content

Commit

Permalink
modify tranform_num() for '666666666'
Browse files Browse the repository at this point in the history
  • Loading branch information
Soracha Thepsatitsilp committed Jun 22, 2012
1 parent 7ab0f4e commit 2675287
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions BankOCR.pm
Expand Up @@ -34,6 +34,11 @@ sub tranform_num {
" _| _| _| _| _| _| _| _| _|" .
" " ;

my $str6 = " _ _ _ _ _ _ _ _ _ " .
"|_ |_ |_ |_ |_ |_ |_ |_ |_ " .
"|_||_||_||_||_||_||_||_||_|" .
" " ;

if ( $input eq $str0 ) {
return "000000000" ;
}
Expand All @@ -58,6 +63,11 @@ sub tranform_num {
return "555555555" ;
}

elsif ( $input eq $str6)
{
return "666666666" ;
}

return "Not number" ;
}

Expand Down

0 comments on commit 2675287

Please sign in to comment.