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

Re: What's going on with "given (junction) {when (value)...}"

Thread Previous | Thread Next
From:
Ralph Mellor
Date:
June 1, 2021 15:09
Subject:
Re: What's going on with "given (junction) {when (value)...}"
Message ID:
CAPLR5SdrCZTmU=BLTM_55JwN5qP4EBE6Dtq6npmNXV4ZHNRFzw@mail.gmail.com
Curiously, it works for postfix `when`:
```
$_ := any(4,3);
{say 'postfix when'} when 3; # 3
when 3 { say 'prefix when' }  # (no output)
```

--
love, raiph

Thread Previous | 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