in reply to Re: Returning a string from executable
in thread Returning a string from executable

Alternatively, you could just chomp $enable_poe; before you check it (thus avoiding the need for a regex)