Re: The sperm secret operator: is it new?
Sebastian Schmidt <[email protected]> Wed, 14 Mar 2012 15:51:09 +0100
| Newsgroups | gmane.comp.lang.perl.fun |
|---|---|
| Message-ID | <[email protected]> |
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)).