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

contains booboo

Thread Next
From:
ToddAndMargo via perl6-users
Date:
December 18, 2018 22:48
Subject:
contains booboo
Message ID:
7789897c-8cf6-fd13-15d2-595861077bdf@zoho.com
Hi All,

Where is my booboo?

$ p6 'my$x="abcd"; if $x.contains("b" && not "q") {say "y"}else{say "n"};'

n


In the mean time, I will ue
     if $x.contains("b") && not $x.contains( "q" )


Many thanks,
-T

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When you say, "I wrote a program that
crashed Windows," people just stare at
you blankly and say, "Hey, I got those
with the system, for free."
      -- Linus Torvalds
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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