On 08/14/2018 06:33 PM, yary wrote:
"so" coerces to True or False. "say /c/" would output the match object
"say so /c/" says True. Depends on what you want to see.
" $x ?? $y !! $z" is a shortcut - "if $x use value of $y else use value
of $z" and ought to be used for the final value.
You may know it in perl5 as "$result = $x ? $y : $z"
Here I use it to avoid typing "if {} else {}" - a similar shortcut is
s/foo/bar/ || say 'Failed!'
.say is a quick way of saying $_.say -a dot without any variable,
expression before it means "call this method on the topic variable which
is $_"
-y
I am going to have to read that over several times!
Thank you!