On Wed, Mar 14, 2012 at 07:48:35AM -0700, John Douglas Porter wrote: [ ~~ vs. scalar ] > > So is that the Perl 6 smart match operator? or something else? > In any case... How does it work here? It looks like it's functionally > equivalent to scalar()... but why? It's twice bitwise not, and bitwise not enforces scalar context. Think ~(~(foo)).Thread Previous | Thread Next