in reply to Posted Value "eq" not working

Doing something like this will help you debug.
# THIS PART IS FAILING if($get eq "false") { print "Box is currently on"; } else { print "=>$get<" ; }

Replies are listed 'Best First'.
Re^2: Posted Value "eq" not working
by pvaldes (Chaplain) on Sep 13, 2011 at 11:50 UTC

    perhaps you are expecting the string f+a+l+s+e where you should have 0 or ''

    maybe something like this...

    if(/(^[Ff]alse$|^0$|^''$|^'0'$)/  );

    or

    unless($get){print ...}