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

need second pair of eyes

Thread Next
From:
ToddAndMargo
Date:
June 12, 2018 22:41
Subject:
need second pair of eyes
Message ID:
a832aa15-7768-fcd7-5357-4114dccfc901@zoho.com
Hi Alk,

What am I dong wrong here?


$ p6 'my $Line = "wine-patched/archive/staging-/xxxxx.tar.gz"; if $Line 
~~ | "wine-patched/archive/staging-/"   &&   ".tar.gz " |  {say "yes"} 
else {say "no};'

===SORRY!===
Expression needs parens to avoid gobbling block
at -e:1
------> ging-/"   &&   ".tar.gz " |  {say "yes"}⏏ else {say "no};
Missing block (apparently claimed by expression)
at -e:1
------> ging-/"   &&   ".tar.gz " |  {say "yes"}⏏ else {say "no};


:'(

-T

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