Hi All,

Why does this work

$ perl6 -e 'my $x="abcdef"; if $x.contains( "abc" ) { say "yes" } else { say "no" };'

And this does not?

$ perl6 -e 'my $x="abcdef"; if $x.contains( 'abc' ) { say "yes" } else { say "no" };'
===SORRY!=== Error while compiling -e
Undeclared routine:
    abc used at line 1. Did you mean 'abs'?

Why can I not use 'abc' and must use "abc"?

Many thanks,

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

Reply via email to