Here is the code:
response = line.split( '|' )
MyUtil.output "Inside loop@" + response[0] + "@"
FidelioUtil.output response[0].eql? 'LS' # .chomp.strip
and here is the output:
Sat Mar 03 08:55:36 +0000 2012: Inside loop@LS@
Sat Mar 03 08:55:36 +0000 2012: false
This does not appear to be working the way I expected. What is missing?
I have also tried chomp and strip but this doesn’t appear to be helping.
Also “to_str” doesnt work either.
Any diagnosis code I can run on this variable so that I can see why it would not be comparing it properly?
The problem was that there was hidden characters in the string. Using response[0].encoding and response[0].inspect helped.