Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: language Decoding problem..?

by space_monk (Chaplain)
on May 17, 2013 at 14:01 UTC ( #1033983=note: print w/replies, xml ) Need Help??


in reply to Re^2: language Decoding problem..?
in thread language Decoding problem..?

I suggest just to be sure you walk along each character to find the difference. Something like this:
# there are probably better ways of doing a string diff... my ($s1, $s2) = ($title_checking, $titlenamefromindex); for (my $i = 0; i < length( $s1); $i++) { print "Different at $i\n" if (substr( $s1, $i, 1) ne substr( $s2, $ +i, 1); }
(You may need to make minor fixes to above)
If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033983]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2016-12-08 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (136 votes). Check out past polls.