Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: string mis-match?

by SuicideJunkie (Vicar)
on Aug 13, 2015 at 14:24 UTC ( [id://1138429]=note: print w/replies, xml ) Need Help??


in reply to string mis-match?

I suggest printing both strings out with delimiters to see what they look like:

printf ']%s[\n', $string1; printf ']%s[\n', $string2;

The ]['s will make whitespace in the strings noticeable.

If you still don't see a difference, print the hex values of each byte in the string to see where it mismatches. And consider changing your system font if it turns out to be an I vs 1 thing or something similar.

Replies are listed 'Best First'.
Re^2: string mis-match?
by zeltus (Beadle) on Aug 13, 2015 at 14:54 UTC

    Yes, I do this sort of thing as a matter of course. The strings look identical. But the strimg comparison still declares a mis-match

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1138429]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-24 06:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found