On Tue, Sep 11, 2018 at 02:42:20AM -0700, ToddAndMargo wrote:
: How do I clean this up for use with Perl 6?
: 
: $ perl -E 'say index("abc", "z") == -1 ? "False" : "True"'
: False

I'm a little bit surprised nobody suggested the most basic method:

    say index("abc", "z").defined ?? "True" !! "False"

Larry

Reply via email to