in reply to ~~ and list literal
What are you trying/hoping to do?
??? means value is discarded, meaning it is same as 'x' ~~ 'z'$ perl -MO=Deparse,-p - print( "x" ~~ ("x", "y", "z") ); ^Z print(('x' ~~ ('???', '???', 'z'))); - syntax OK
Aside from changing the code to "x" ~~ ["x", "y", "z"], is there another way?
Yeah, without ~~
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: ~~ and list literal
by Anonymous Monk on Oct 25, 2012 at 11:38 UTC |
In Section
Seekers of Perl Wisdom