note
Anonymous Monk
<p> What are you trying/hoping to do?
<c>$ perl -MO=Deparse,-p -
print( "x" ~~ ("x", "y", "z") );
^Z
print(('x' ~~ ('???', '???', 'z')));
- syntax OK
</c>
??? means value is discarded, meaning it is same as 'x' ~~ 'z'
<p> <i> Aside from changing the code to <c> "x" ~~ ["x", "y", "z"]</c>, is there another way? </i>
<p> Yeah, without ~~
1000809
1000809
8