develooper Front page | perl.perl6.users | Postings from September 2018

how do I do this index in p6?

Thread Next
From:
ToddAndMargo
Date:
September 11, 2018 09:42
Subject:
how do I do this index in p6?
Message ID:
6e215605-d6dc-2fd1-ab8c-9ec75b953ff5@zoho.com
Hi All,

How do I clean this up for use with Perl 6?

$ perl -E 'say index("abc", "z") == -1 ? "False" : "True"'
False

Many thanks,
-T


-- 
~~~~~~~~~~~~~~~~~~~~~~~~
Yesterday it worked.
Today it is not working.
Windows is like that.
~~~~~~~~~~~~~~~~~~~~~~~~

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About