|P is for Practical|
If there a way to find the location of the first difference between two strings?by flexvault (Monsignor)
|on Mar 26, 2012 at 09:02 UTC||Need Help??|
flexvault has asked for the wisdom of the Perl Monks concerning the following question:
Since looping on characters is not one of Perl's strong points, is there a way to get the location of the first difference between two strings? (Note: I typed the code in since I can't cut and paste between my browser and my Xterm.)
What I would like to get, is the following:
Obviously it doesn't work that way, but is there an alternate that I'm not aware of?
"Well done is better than well said." - Benjamin Franklin